Replies: 1 comment
-
|
The regexes you give need to match the paths that would be in the archive, see Then use Alternatively to using just excludes, you can also use the more powerful patterns mechanism. If you have a lot of patterns, rather use a patterns file than giving them on the command line (using a file also avoids some pitfalls with the shell expanding some stuff, if not quoted correctly). Yes, you need For some simple cases, using When using patterns and you are pretty sure you don't want to include something below an excluded directory, you can use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
General overview
I have installed as user with flatpack some package witch put all their stuffs in
~/.var/app/<name-of-package>. Also, this packages have, inside theire own directory acache(orCacheit seems not normalized) directory.So, I want to exclude all this directories from backup.
What I already did
--exclude-cachesNaturally, I started with
--exclude-caches, but it doesn’t exclude at all theise directories.--excludewith regexI also give explicitly the path of theise directories with the following options:
But here again, borg seems just totaly ignoring these options, like if they had no effect.
What I saw
I also read in the documentation the
ppoption to match directory, but —as I understand— it’s waiting for an explicit directory path, and not a regex.The question
How can I exclude a range of directories according to a regex?
Beta Was this translation helpful? Give feedback.
All reactions