Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
This is a little script I put together to get backups of eDirectory from a Linux box. NDSBackup is a good utiltity - you can even schedule it, but I had a need to backup multiple trees, and I also did not want to manage backup directories, or archival directories for that matter. So I put together a really quick shell script to do some of that for me.
Usage:
edirbackup.sh [-t][-s]
-t denotes the name of the tree you are going to backup.
-s denotes the server you wish to backup from. (preferebly a replica server)
Example:
edirbackup.sh -t my-tree-name -s myserver.mycompany.com
The script takes a full tree backup, and a seperate backup for the schema on each tree. It then mails each report to whomever you want.
It also handles directory creation past the intitial backup directory. Nothing special, I just did this because I was lazy.