Jerry Fleming
2006-Oct-16 03:07 UTC
how to move the files that should be deleted to somewhere else
I am using rsync version 2.6.4 on Debian 3.1rc. I use rsync in this way: rsync -avLz -e ssh --progress --delete --exclude=file root@192.168.0.31:/data/lessondev/ /mnt/usb/ Now I would like all old files that should be deleted to be kept in somewhere else, maybe also renamed to append a timestamp. Any suggestion will be appreciated. - Jerry
Matt McCutchen
2006-Oct-16 03:11 UTC
how to move the files that should be deleted to somewhere else
On 10/15/06, Jerry Fleming <jerry.fleming@saybot.com> wrote:> I am using rsync version 2.6.4 on Debian 3.1rc. I use rsync in this way: > rsync -avLz -e ssh --progress --delete --exclude=file > root@192.168.0.31:/data/lessondev/ /mnt/usb/ > Now I would like all old files that should be deleted to be kept in > somewhere else, maybe also renamed to append a timestamp. Any suggestion > will be appreciated.You can use --backup, but it will keep copies of overwritten files as well as deleted files. You can put the backups in another directory (--backup-dir) and/or append a string of your choice to their names (--suffix). Matt