rsync filters
Smoot Carl-Mitchell
smoot at tic.com
Thu Sep 24 17:15:31 UTC 2009
On Thu, 2009-09-24 at 12:33 -0400, Hal Burgiss wrote:
> For instance, I get this kind of output ...
>
> bin/
> deleting bin/znew
> deleting bin/zmore
> deleting bin/zless
> deleting bin/zgrep
> deleting bin/zforce
> deleting bin/zfgrep
> deleting bin/zegrep
> deleting bin/zdiff
> deleting bin/zcmp
> deleting bin/zcat
> deleting bin/which
> deleting bin/vdir
> deleting bin/uncompress
> deleting bin/uname
> deleting bin/umount
> [...]
>
> All of which exist on both machines and appear to be identical, including
> timestamps.
>
> The command line I am using is:
> rsync -vazSHF --no-blocking-io --partial --delete-during --delete-excluded --timeout 600 --dry-run / $sync_dst:/
>
Your problem is the --delete-excluded flag. It will delete files on the
target which are excluded on the source. That is why you are getting
the delete messages. You probably want the --delete flag which will
delete files on the target which are not on the source and not in the
excluded category.
--
Smoot Carl-Mitchell
Computer Systems and
Network Consultant
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005
More information about the ubuntu-users
mailing list