Hello,
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
total 60
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
total 16
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,
Nick