No matter what I try, I never see the deleted files. Here is my code:
set src = "/aux3/backup"
set dst = "aux1"
set log = "/root/backup/rsync.aux3.`date +%y%m%d`"
# Do the backup
date |& tee /tmp/mailout3
/usr/local/bin/rsync -avH --delete --numeric-ids $src root@host::$dst |& tee -a /tmp/mailout3
date |& tee -a /tmp/mailout3
This is the output I get:
/root/backup 194# ./backup.nas3.csh
Thu Mar 17 15:32:14 HST 2005
building file list ... done
wrote 876 bytes read 40 bytes 203.56 bytes/sec
total size is 981447446 speedup is 1071449.18
Thu Mar 17 15:32:18 HST 2005
I've tried -e ssh, --delete-after, --stats, and nothing works. I even tried --log-format, but it doesn't seem to be making any difference. Maybe I'm doing something really stupid but for the life of me I can't see what it is. The script works as far as actually doing the work that it's intended to do, but I want the feedback, because when I was using rdist it was useful a few times to catch some problems before they became problems.