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
> From:         Kevin Korb <k...@sanitarium.net>
> To:   H <age...@meddatainc.com>
>
>
>
> Drop the include of * or move the exclude of *.~lock* before it.  Also, 
> -c is almost always a bad idea.
>
> On 4/30/22 18:18, H via rsync wrote:
> > 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='*/' --exclude='*.~lock*' --exclude='*' -e "ssh -y 
> > -p 22" ~/test/ someone@1.2.3.4:~/test
> > 
> > Can anyone point out what I have missed in the above?
> > 
> > Thank you.
> > 
> > 
>
> -- 
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>       Kevin Korb                      Phone:    (407) 252-6853
>       Systems Administrator           Internet:
>       FutureQuest, Inc.               ke...@futurequest.net  (work)
>       Orlando, Florida                k...@sanitarium.net (personal)
>       Web page:                       https://sanitarium.net/
>       PGP public key available on web site.
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
>
>
When I dropped the '*' include it did not sync files in the topmost directory? 
Perhaps it always needs to be included among the options?

-- 
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

Reply via email to