J Beris pecked at the keyboard and wrote:
I use the following command in my shell script to do the rsync backup: $RSYNC -alvz --delete --exclude=Cache --exclude=.beagle -- exclude=trash --exclude=.thumbnails /home/<username> $MPOINT --log- file=/var/log/rsync
The --delete means to delete files on the remote that are not on the local machine. That is why they are gone on the backup drive.
Hi Ken,
Thanks for the fast reply. Yes, I know what --delete does, and I *want* rsync to delete files from the target directory...only not right away, but after 14 days or 30 days or so. If I don't use --delete, then rsync will just keep adding things to the backup, but never removing them, as I understand it.
Am I wrong about that?
Partially. rsync does not currently support this feature. Perhaps if you email the author with a feature request it could be added. Or perhaps an incremental type feature could be implemented. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org