hi, i have a backup script which goes as follows:
# Back-Up Directory
TIMESTAMP=`date +%Y%m%d_%H%M%S`; #Year_Month_Day_Hour_Minute_Second
/usr/bin/rsync --verbose --stats --recursive /server/Mail /server2/Mirror/
/usr/bin/rsync --verbose --stats --recursive /server/Documents /server2/Mirror/
/usr/bin/rsync --verbose --stats --recursive /server/Backup /server2/Mirror/
if [ $? -eq 0 ];then
echo "bk_OK_$TIMESTAMP" >> /home/ian/sync.log
designed to copy my important stuff to another hard drive.. but a problem that i have with it is when it runs... if i have deleted something the backup copy doesnt delete the same file.
any ideas how i can get around this? thanks.