--detect-renamed --detect-moved and -b

Thomas Gutzler thomas.gutzler at gmail.com
Wed Nov 11 05:27:21 MST 2009


Hi,

I played around with the combination of rsync --detect-renamed
--detect-moved and -b.
Given the following tree:
src/dir/file
dest/src/dir/file
I renamed src/dir to src/dir2 and ran the following command:
rsync -a --detect-renamed --detect-moved --delete -b --backup-dir=bak src dest
ending up with:
dest/bak/src/dir/file

Is it supposed to do that? I was expecting it to detect the renamed
directory (or moved file) and exclude it from the backup.

Tom


More information about the rsync mailing list