Hello!

I was wondering wether or not this would be a viable option to add to rsync:

--delete-hide

Instead of deleting the file, rsync would rename the file using leading “.” and 
trailing “.deleted-{timestamp}”.

rsync -rv --delete-hide /src/ /dst/

For example if /src/readme.txt had already been rsynced to /dst/readme.txt and 
then later was deleted from /src, rsync would - instead of deleting 
/dst/readme.txt - rename /dst/readme.txt to 
/dst/.readme.txt.deleted-20140604120445.

Rgrds,
Saku Vainikainen.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to