[Date Prev][Date Next]
Problem with openldap backup script
- To: email@example.com
- Subject: Problem with openldap backup script
- From: Nick Milas <firstname.lastname@example.org>
- Date: Tue, 04 Jan 2011 17:32:52 +0200
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:18.104.22.168) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
I'm running openldap 2.4.22 using Buchan's CentOS/RHEL 5 RPMs. For some
reason, although the backup script seems to be running successfully
(either manually or by cron), it produces no results whatsoever:
# cd /usr/share/openldap2.4/scripts/
# ls -la
drwxr-xr-x 2 root root 4096 Dec 27 22:14 .
drwxr-xr-x 4 root root 4096 Dec 27 22:14 ..
-rwxr-xr-x 1 root root 16584 Apr 27 2010 ldap-common
-rwxr-xr-x 1 root root 3776 Dec 28 09:14 ldap-hot-db-backup
-rwxr-xr-x 1 root root 4979 Apr 27 2010 ldap-reinitialise-slave
# ./ldap-hot-db-backup -v 4
Warning: Starting backup
Warning: Successfully ran backup to temporary directory
Info: We have 0 of 0 locks
Info: Starting switch
Warning: Switched new backup to good backup successfully
Info: successfully removed all lock files
Warning: Backup run completed successfully
# ls -la /var/lib/ldap2.4/backup
drwxr-xr-x 2 ldap ldap 4096 Jan 3 19:24 .
drwxr-x--- 4 ldap ldap 4096 Jan 4 11:06 ..
I am trying to go through the script code (in the backup script and in
ldap-common) but it's no easy task. Can someone suggest some solution?
What may be going wrong? Why everything seems successful although no
backup is taken?
What are these 0 of 0 locks?
Any help will be appreciated.
Thanks in advance,