This script is simply and usefull to backup all users in a tivoli directory server to an ldif file.
When schedule by crontab it’s possible to add in command line destination folder by $1 param,
so you can have different versions of backup.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh NOW=$(date +"%u") LPATH=/tmp/juve_full_backup$NOW.ldif RPATH=/backup/ldap/$1 LOG=/var/log/bckLdap$1"-"$NOW".log" echo "------------------"Backup LDAP on DOW $NOW"----------------------------------">LOG echo `date`>>$LOG mkdir $RPATH /opt/IBM/ldap/V6.3/sbin/idsdb2ldif -I juvetds1 -o $LPATH >$LOG mv $LPATH $RPATH |