[Borgbackup] Cannot exclude directories

Nick Gilmour nickeforos at gmail.com
Tue Aug 22 09:32:38 EDT 2017


Thanks both!

I have tested again like you suggested and it works (without quoting and
with paths starting from root).

Like this:
*/dir # excludes directory & all its content

*/dir/ # excludes only directory's content - keeps directory


Regards,

Nick


On Tue, Aug 22, 2017 at 10:42 AM, Marian Beermann <public at enkore.de> wrote:

> Hi Nick,
>
> On 22.08.2017 01:12, Nick Gilmour wrote:
> > Hi all,
> >
> > 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:
> > ...
> > "/home/*/.cache"
> > "*/.Trash-*"
> > ...
>
> Quoting / escaping doesn't work in exclude files, because Borg never
> processes quoting / escaping — it's done by the shell on the command
> line or in scripts.
>
> Cheers, Marian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/borgbackup/attachments/20170822/d0f15a1c/attachment-0001.html>


More information about the Borgbackup mailing list