This would have been faster for me to do if the URL you gave there was an actual SVN url rather than a browser :-P. After eeplacing the plugin (and pruning a couple zero-length files from /etc/backup/ldap) I can say that it appears to be properly backing up the LDAP system now. I will watch the regular cron emails to make sure the daily warnings are gone, but otherwise I believe your fix corrected this situation. Thank you for your time and patience.
-----Original Message----- From: Micah Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 11:00 PM To: Erik Anderson; [EMAIL PROTECTED] Subject: Re: Bug#394935: backupninja: no longer backing up local ldap database (slapcat) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, If you get a chance, can you pull the updated ldap handler code from svn[1], put it in /usr/share/backupninja and see if it solves your problem? The handler has had some re-working done, and it would be good to know if it fixes your problem or not. Micah 1. https://code.autistici.org/trac/backupninja/browser/trunk/handlers/ldap Erik Anderson wrote: > Package: backupninja > Version: 0.9.4-3 > Severity: normal > > > This issue was exposed after the weekly dselect/testing update done last > Friday. Since the update, I have been receiving WARNING emails stating > that the ldif export had failed. A debugging run of backupninja showed > a call to slapcat, followed by what appears to be a slapcat usage line. > > I have copied the slapcat commandline described in the backupninja debug > and have pasted it into a bash command prompt, the command ran as > desired and did an apparent backup of the LDIF database. > > I'm left with the idea that the slapcat command that backupninja > describes in its debug listing is not the same command that is actually > submitted. > > I recognize that I am using slapcat without restarts, the back end is > bdb which from the documentation appears to be a valid use for this > combination. > > ------------- > Email: > > *warning* -- /etc/backup.d/10-ldap.ldap > success -- /etc/backup.d/20-databases.mysql > > == warnings from /etc/backup.d/10-ldap.ldap == > > Warning: Failed ldif export of dc=teamworkgroup,dc=com > > ------------ > Diagnostic run: > > Debug: check_perms /etc/backup.d > Debug: perms: drwxrwx--- > Debug: gperm: rwx > Debug: wperm: --- > Debug: check_perms /etc/backup.d/10-ldap.ldap > Debug: perms: -rw------- > Debug: gperm: --- > Debug: wperm: --- > Info: >>>> starting action /etc/backup.d/10-ldap.ldap (because of --now) > Debug: yes > Debug: /usr/sbin/slapcat -f /etc/ldap/slapd.conf -b > dc=teamworkgroup,dc=com | /bin/gzip > usage: slapcat [-v] [-c] [-d debuglevel] [-f configfile] > [-n databasenumber | -b suffix] [-l ldiffile] [-m] [-k] > Warning: Failed ldif export of dc=teamworkgroup,dc=com > Warning: <<<< finished action /etc/backup.d/10-ldap.ldap: WARNING > Debug: check_perms /etc/backup.d > Debug: perms: drwxrwx--- > Debug: gperm: rwx > Debug: wperm: --- > Debug: check_perms /etc/backup.d/20-databases.mysql > Debug: perms: -rw------- > Debug: gperm: --- > Debug: wperm: --- > Info: >>>> starting action /etc/backup.d/20-databases.mysql (because of > --now) > Debug: yes > Info: Initializing hotcopy method > . > . > . > Info: <<<< finished action /etc/backup.d/20-databases.mysql: SUCCESS > Debug: send report to root > Info: FINISHED: 2 actions run. 0 fatal. 0 error. 1 warning. > > > Note that the following command line apparently succeeded when executed > at a commandline: > > /usr/sbin/slapcat -f /etc/ldap/slapd.conf -b dc=teamworkgroup,dc=com > > -------------------- > 10-ldap.ldap (many comments stripped for brevity) > > backupdir = /var/backups/ldap > conf = /etc/ldap/slapd.conf > databases = all > compress = yes > restart = no > method = slapcat > # passwordfile = > # binddn = > > > -- System Information: > Debian Release: testing/unstable > APT prefers testing > APT policy: (500, 'testing'), (500, 'stable') > Architecture: i386 (i686) > Shell: /bin/sh linked to /bin/bash > Kernel: Linux 2.6.17.7 > Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) > > Versions of packages backupninja depends on: > ii bash 3.1-5 The GNU Bourne Again SHell > ii dialog 1.0-20060221-1 Displays user-friendly dialog boxe > ii gawk 1:3.1.5.dfsg-4 GNU awk, a pattern scanning and pr > ii mawk 1.3.3-11 a pattern scanning and text proces > > backupninja recommends no packages. > > -- no debconf information > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFwuFi9n4qXRzy1ioRAvGdAJ9rUoemPjwMnX2rWaVn+FquVkr/ogCfQxGS 2raW6rGZM8UoBb2ZxGt78t0= =Ramc -----END PGP SIGNATURE-----