What do You Use to Backup eDirectory

eDir - 9.2.8  SLES 15 sp5

I have been using Brad Bartholomew's ndsbackup.sh for several years.  I have now found it will not work with eDir 9.2.8 on SLES 15.  Too many errors I am not able to resolve.

Any recommendations to backup eDir 9.2.8 on SLES 15 sp5.

Thank you.

  • 0

    I have a very simple script that I use.  I don't remember where I got it.

    #!/bin/bash
    source /opt/novell/eDirectory/bin/ndspath
    DAYNAME=$(date +"%A")
    /opt/novell/eDirectory/bin/dsbk backup -f /media/nss/VolumeName/edirbak/${DAYNAME}/edir.dib -l /media/nss/VolumeName/edirbak/edir.log -w -t -e novell

    For the above to work, you just need to edit "VolumeName" and then create the folder "edirbak" on that volume (or change the entire path to the folder of your choice).  Under edirbak, create seven folders matching the days of the week.  Schedule it to run daily.  It will overwrite previous backups.  But this way you always have seven versions (more if you backup this folder elsewhere).  I use the above on OES.  I've never run eDirectory on SLES outside of OES, but assuming the same files exist on your install, it should work.

  • 0 in reply to 

    Thank you.  I believe I tried dsbk and it didn't work either.  I'll fiddle with it again.

  • 0 in reply to 

    Oops, getting somewhere.  I get this error when I run the script.  Scripts are not my strongest skill.  Where you have -e novell what do I substitute for my environment.

    Command line   backup -f /edirbak/Thursday/edir.dib -l /edirbak/edir.log -w -t -e XXXXXX
    Processing command line
    Error!: -2
    Unable to open log file!
    Completion time 00:00:00
    1 Error!
    DSBK error! -2

  • 0   in reply to 

    You'll need a tempfile. Create a file named /etc/dsbk.conf, open it and just enter the name of the desired tempfile, let's say

    /edirbak/dsbk.tmp

    Save /etc/dsbk.conf and issue

    touch /edirbak/dsbk.tmp

    Then run your command again.

  • 0 in reply to 

    "novell" is just a placeholder for the password you want to use.  See the docs here:

    https://www.netiq.com/documentation/edirectory-9/edir_admin/data/bsl7jmp.html

  • 0 in reply to 

    Thank you all.  I have it working.  Except send mail error:  sendmail: /opt/novell/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib64/libicuuc.so.suse65.1)

    Picking up again tomorrow!

  • 0

    Beside dsbk I also use an ldif format backup. This is useful to check for different attribute values in the backup in human readable format without restoring the full object. It also provides some kind of history for edirectory changes. It is not a full scale audit, but came in handy multiple times.

    /opt/novell/eDirectory/bin/ice -l "$backupDir/$filename.log" -S LDAP -t -d "$backupUsername" -w "$backupPassword" -c SUB -b ' ' -D LDIF -f "$backupDir/$filename" >/dev/null 2>&1