Matt McCutchen matt at mattmccutchen.net
Tue Oct 14 03:28:29 GMT 2008

On Mon, 2008-10-13 at 23:20 -0400, Franck Y wrote:
> I got the source and rebuild it since i needed the --backup-dir-dels
> option.
> I sucesfully compiled it within my remote and my host.
> I have a little script that is working so i added  the
> --backup-dir-dels
> rsync --owner --group --compress --size-only --stats
> --backup-dir-dels=/back_delete --progress --recursive --times
> --exclude '*.tmp' --perms --links /data2/ |
> tee $name_of_log.
> I remove a file from the remote and a directory as well but
> unfortunately i saw nothing in /back_delete, i tried
> --backup-dir-dels=/back_delete  and --backup-dir-dels='/back_delete'
> but with no luck !

You need to use the --delete and --backup options along with
--backup-dir-dels.  You may also need to set a --backup-dir to give
rsync a place to put overwritten files; otherwise it will default to
appending a ~ to the name.


More information about the rsync mailing list