<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 04/30/2022 07:56 PM, H via rsync
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:89a0e594-ad07-33c3-0bb9-9932ce9ac12e@meddatainc.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <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"
                  moz-do-not-send="true"><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"
                  moz-do-not-send="true"><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:%7E/test" moz-do-not-send="true">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" moz-do-not-send="true">Kevin@FutureQuest.net</a>  (work)
        Orlando, Florida                <a class="moz-txt-link-abbreviated" href="mailto:kmk@sanitarium.net" moz-do-not-send="true">kmk@sanitarium.net</a> (personal)
        Web page:                       <a class="moz-txt-link-freetext" href="https://sanitarium.net/" moz-do-not-send="true">https://sanitarium.net/</a>
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
</pre>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <p>When I dropped the '*' include it did not sync files in the
      topmost directory? Perhaps it always needs to be included among
      the options?<br>
    </p>
  </body>
</html>