Problem with file exclusion pattern

2022-04-30 Thread H via rsync
I am running rsync on Linux and have yet to find the appropriate pattern to exclude files containing '.~lock' as part of the name of files existing in any directory, ie ~/test and below. rsync -vHrltDium -c --chmod=Du+rwx,go-rwx,Fu+rw,go-rw --no-perms --stats --include='*' --include='*/'

Fwd: Problem with file exclusion pattern

2022-04-30 Thread H via rsync
Ah, I was under the impression that all inclusion patterns need to preceed the exclusion patterns? Forwarded Message Subject:Re: Problem with file exclusion pattern Date: Sat, 30 Apr 2022 18:49:22 -0400 From: Kevin Korb To: H Drop the include of * or move

Re: Fwd: Problem with file exclusion pattern

2022-04-30 Thread Kevin Korb via rsync
Includes override excludes that follow. So, your include of * meant that nothing was being excluded. An exclude before any includes isn't affected by the includes. On 4/30/22 20:04, H via rsync wrote: On 04/30/2022 07:56 PM, H via rsync wrote: Ah, I was under the impression that all

Re: Fwd: Problem with file exclusion pattern

2022-04-30 Thread Kevin Korb via rsync
Sure, that is the way it normally works. By default everything is included. Excludes exclude things. Includes are exceptions to includes that follow. Note that this can get very complicated. --exclude-from=file.txt makes things much easier as you can use the +/- syntax to put both

Re: Fwd: Problem with file exclusion pattern

2022-04-30 Thread H via rsync
On 04/30/2022 07:56 PM, H via rsync wrote: > > Ah, I was under the impression that all inclusion patterns need to preceed > the exclusion patterns? > > > > Forwarded Message > Subject: Re: Problem with file exclusion pattern > Date: Sat, 30 Apr 2022 18:49:22 -0400 >

Re: Fwd: Problem with file exclusion pattern

2022-04-30 Thread H via rsync
On 04/30/2022 08:22 PM, Kevin Korb via rsync wrote: > Includes override excludes that follow.  So, your include of * meant that > nothing was being excluded.  An exclude before any includes isn't affected by > the includes. > > On 4/30/22 20:04, H via rsync wrote: >> On 04/30/2022 07:56 PM, H