<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">Le 22/08/2017 à 01:12, Nick Gilmour a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAH-drox9OKTu=4CRy+eh_+rm3Xfxp5cDHeYD+8e4viqO8Wsx4Q@mail.gmail.com">
      <div dir="ltr">
        <div>Hi all,</div>
        <div><br>
        </div>
        <div>I cannot exclude any directories with the option
          **--exclude-from** which I have defined in a text file. The
          directories in the text file are like this:</div>
        <div>...</div>
        <div>"/home/*/.cache"</div>
        <div>"*/.Trash-*"</div>
        <div>...</div>
        <div><br>
        </div>
        <div>I have tried some variations of this. E.g.:</div>
        <div>/.cache</div>
        <div>/.cache/</div>
        <div>.cache</div>
        <div>.cache/*</div>
        <div><br>
        </div>
        <div>but Borg keeps creating backups of these directories. Also
          the option **--exclude-caches** didn't help in the case of
          .cache. The command I run is of this form:</div>
        <div><br>
        </div>
        <div>**borg create -spv --exclude-caches --exclude-from
          exclude-file.txt myrepo::mybackup mysource**</div>
        <div><br>
        </div>
        <div>borg version: 1.0.7</div>
        <div>System: Ubuntu 16.04.1 based</div>
        <div><br>
        </div>
        <div>What am I doing wrong?</div>
      </div>
    </blockquote>
    <br>
    don't know what you're doing wrong but it works for me with  <i><b> 
        --exclude '/home/*/.cache' \</b></i><br>
    maybe a syntax problem?<br>
    <br>
    borg -V<br>
    $ borg 1.0.7<br>
    <br>
    * on the mounted backup<br>
    ll /mnt/provigo-borg/home/libes/.cache<br>
    ls: impossible d'accéder à '/mnt/provigo-borg/home/libes/.cache':
    Aucun fichier ou dossier de ce type<br>
    <br>
    * on my disk<br>
     ll ~libes/.cache/ -d<br>
    drwxr-xr-x 18 libes libes 4096 juin   7 12:32 /home/libes/.cache//<br>
    <br>
    here is my syntax, with the absolute path<br>
    <br>
    $BORG create \<br>
         -v --stats \<br>
         $COMPRESSION \<br>
         $BORG_ARCHIVE \<br>
         $REP_ASAUVEGARDER  \<br>
    <i><b>     --exclude '/home/*/.cache' \</b></i><br>
         >> ${LOG_PATH} 2>&1<br>
    <br>
    <blockquote type="cite"
cite="mid:CAH-drox9OKTu=4CRy+eh_+rm3Xfxp5cDHeYD+8e4viqO8Wsx4Q@mail.gmail.com">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Nick<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Borgbackup mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Borgbackup@python.org">Borgbackup@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/borgbackup">https://mail.python.org/mailman/listinfo/borgbackup</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
M. LIBES
Service Informatique OSU Pytheas - UMS 3470 CNRS
Batiment Oceanomed
Campus de Luminy
13288 Marseille cedex 9
Tel: 04860 90529 </pre>
  </body>
</html>