by Brad Bartholomew
Here are two scripts for doing a backup of eDirectory on Linux using either dsbk or ndsbackup. Download the file and use the following instructions to implement.
- Copy the edirbkup.tgz file to the root directory ‘/’. Extract the backup directory and scripts by executing the following command:
# tar zxvf edirbkup.tgz
- Modify the scripts by changing the variables to be specific to your server and eDirectory tree.
# vi dsbkup.sh # vi ndsbackup.sh
- Add an entry in crontab to schedule the script to run automatically. To run nightly you may use something like this:
0 23 * * * /backup/dsbkup.sh 30 23 * * * /backup/ndsbackup.sh
The scripts are designed to keep only the 7 most current backups. You can modify it to meet your needs.