rsync filters
Johnny Rosenberg
gurus.knugum at gmail.com
Thu Sep 24 17:21:34 UTC 2009
2009/9/24 Smoot Carl-Mitchell <smoot at tic.com>:
> 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.
Oops, you beat me to it… well, at least we are two who says the same thing…
J.R.
> --
> Smoot Carl-Mitchell
> Computer Systems and
> Network Consultant
> smoot at tic.com
> +1 480 922 7313
> cell: +1 602 421 9005
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list