Re: prevent filter excluded files from being deleted

2023-03-07 Thread Heiko Schlittermann via rsync
Robin Lee Powell via rsync (Di 07 Mär 2023 16:20:39 CET): > First of all, I disagree that rsync handles very large files badly, > but that's not super relevant. :) Consdier --partial for large > files. I'm using --inplace (because the receiving side does snapshots of the underlying file

Re: prevent filter excluded files from being deleted

2023-03-07 Thread Robin Lee Powell via rsync
On Tue, Mar 07, 2023 at 01:16:07PM +0100, Heiko Schlittermann via rsync wrote: > Robin Lee Powell via rsync (Di 07 Mär 2023 07:07:01 > CET): > > 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). > > I did, but

Re: prevent filter excluded files from being deleted

2023-03-07 Thread Heiko Schlittermann via rsync
Hello Kevin, Kevin Korb via rsync (Di 07 Mär 2023 00:01:27 CET): > 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 >

Re: prevent filter excluded files from being deleted

2023-03-07 Thread Heiko Schlittermann via rsync
Robin Lee Powell via rsync (Di 07 Mär 2023 07:07:01 CET): > 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). I did, but left with some uncertainty. "H" hides the files from the transfer? What does it mean? "P"

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