If the user specifies --backup with --delete (but without --backup-dir
authorWayne Davison <wayned@samba.org>
Fri, 16 Dec 2005 17:18:29 +0000 (17:18 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 16 Dec 2005 17:18:29 +0000 (17:18 +0000)
commitc2c5682c0b5b56b455d9e7bada05f211213818c2
tree1343332b3815e3aaf3cfbae65ff35258236733ac
parent4c72f27dd90c8a028f67305aa01c822a07aae484
If the user specifies --backup with --delete (but without --backup-dir
and --delete-excluded), append a protect-filter rule onto the list of
filter rules.  We run this on both the client and server side so that
an older client talking to a newer server still gets the protection
rule.  (This rule will not cause compatibility problems with older
versions of rsync due to the graceful way that a protect rule turns
into an exclude rule if it needs to be sent to an older server.)
options.c