Re: prevent filter excluded files from being deleted

2023-03-06 Thread Robin Lee Powell via rsync
Read the "PER-DIRECTORY RULES AND DELETE" of the man page. (And don't feel bad, it took me a while to figure it out myself). Short version: per-directory rules only apply on the side they're *specified on*, but you need the exclusion to apply to *both* sides. The following works, for the

Re: prevent filter excluded files from being deleted

2023-03-06 Thread Kevin Korb via rsync
I am not 100% sure I am interpreting this correctly but I think you are complaining that the file was being deleted in the first command? If so, instead of -F try --include='*/' --exclude='*'. Otherwise, maybe you want a second -F? On 3/6/23 16:04, Heiko Schlittermann via rsync wrote:

prevent filter excluded files from being deleted

2023-03-06 Thread Heiko Schlittermann via rsync
Hello, given are 2 directories: a ├── a-file └── .rsync-filter b └── a-file I'd like to sync a/ -> b/, but I'd like to *exclude* all files. But I do not want to delete the excluded files. (The real scenario is a way more complex, the above is my reproducer.) and the