<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Ah, I was under the impression that all inclusion patterns need
to preceed the exclusion patterns?<br>
</p>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellspacing="0"
cellpadding="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
</th>
<td>Re: Problem with file exclusion pattern</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
<td>Sat, 30 Apr 2022 18:49:22 -0400</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
<td>Kevin Korb <a class="moz-txt-link-rfc2396E" href="mailto:kmk@sanitarium.net"><kmk@sanitarium.net></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
<td>H <a class="moz-txt-link-rfc2396E" href="mailto:agents@meddatainc.com"><agents@meddatainc.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>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/ <a class="moz-txt-link-abbreviated" href="mailto:someone@1.2.3.4:~/test">someone@1.2.3.4:~/test</a>
>
> Can anyone point out what I have missed in the above?
>
> Thank you.
>
>
--
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. <a class="moz-txt-link-abbreviated" href="mailto:Kevin@FutureQuest.net">Kevin@FutureQuest.net</a> (work)
Orlando, Florida <a class="moz-txt-link-abbreviated" href="mailto:kmk@sanitarium.net">kmk@sanitarium.net</a> (personal)
Web page: <a class="moz-txt-link-freetext" href="https://sanitarium.net/">https://sanitarium.net/</a>
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
</pre>
</div>
</body>
</html>