[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #7 from Wayne Davison --- If you don't want something deleted on the receiving side, you need to protect it via either a protect rule or an exclude rule. Using --delete-excluded just turns all exclude rules into hide rules, which limits your options. -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 Wayne Davison changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |WONTFIX -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 Haravikk changed: What|Removed |Added Resolution|WONTFIX |--- Status|RESOLVED|REOPENED --- Comment #6 from Haravikk --- In fact, no it doesn't, hide does not work as I'm requesting with --delete-excluded enabled, everything that is excluded is still destroyed on the receiving side: mkdir src mkdir dest touch src/file1 touch src/file2 touch dest/file2 touch dest/file3 rsync -ri --delete-excluded -filter 'H file3' --exclude 'file2' src/ dest/ Note that only file2 exists in both directories initially, meanwhile file1 exists only in the source, and file3 exists only in the destination. I want file1 to be transferred, file2 to be deleted in the destination, and file3 to be preserved in the destination. In other words the result that I want to get is: *deletingfile2 >f..T... file1 The result I actually get is: *deletingfile2 *deletingfile3 >f..T... file1 So hide definitely doesn't do what I want. Meanwhile protect alone doesn't either, because while it won't delete file3, it will still compare it between src/ and dest/ and overwrite it with changes, which I don't want either. So I'm sorry but I'm re-opening this as it is not a case that appears to be covered by existing rules. I need rsync to NOT scan or send a pattern, but without deleting it either. As mentioned in the first post, this only seems to be possible through the use of two rules, and a shorthand form of this would still be beneficial. -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #5 from Haravikk --- Oh, I see; so hide actually does what I need, you confused me with the mention of not using --delete-excluded, as it actually seems to work just fine with a mixture of hide and exclude rules for different items. Thanks! -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #4 from Wayne Davison --- You don't add an exclude rule, you add a hide rule. An exclude rule is a combination of a hide (server side) and a protect (client side). So you choose between the 3 idioms (hide, protect, exclude) depending on if you want the rule to affect one or both sides of the transfer. -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 --- Comment #3 from Haravikk --- If I remove --delete-excluded then how do I ensure my backups remove items matching new exclusion rules? For example, if I identify a new cache folder or such that I don't want to copy, and it add to my exclusion rules, then surely I'd end up with it stuck on the receiving side if it's already there? Don't really want to have to rely on myself remembering to clear these manually every time (especially as it may be for multiple sync operations). -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 Wayne Davison changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW |RESOLVED Resolution|--- |WONTFIX Status|NEW |RESOLVED --- Comment #1 from Wayne Davison --- Just don't use --delete-excluded. For anything that you want to exclude on the sending side without excluding it on the receiving side you should use a "hide" filter rule instead. This way you'll never have 2 rules, only either an "H" rule or a "-" rule. --- Comment #2 from Wayne Davison --- Just don't use --delete-excluded. For anything that you want to exclude on the sending side without excluding it on the receiving side you should use a "hide" filter rule instead. This way you'll never have 2 rules, only either an "H" rule or a "-" rule. -- You are receiving this mail because: You are the QA Contact for the bug. -- 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
[Bug 14371] Combined Exclude & Protect Filter Type
https://bugzilla.samba.org/show_bug.cgi?id=14371 Wayne Davison changed: What|Removed |Added Resolution|--- |WONTFIX Status|NEW |RESOLVED --- Comment #1 from Wayne Davison --- Just don't use --delete-excluded. For anything that you want to exclude on the sending side without excluding it on the receiving side you should use a "hide" filter rule instead. This way you'll never have 2 rules, only either an "H" rule or a "-" rule. -- You are receiving this mail because: You are the QA Contact for the bug. -- 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