Understanding --patterns-from and root paths (aka recursion roots aka roots) #7660
-
My
I have a command like:
It is giving error:
I am not understanding what is going on here.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
One more thing I know I can use So, if I run The idea is, I want to add following two lines in a script so that if I ignore a directory (
|
Beta Was this translation helpful? Give feedback.
-
There is no "default location" for a patterns file, the path you give to Likely your patterns are not correctly matching. Read the docs about patterns and be aware that the include/exclude patterns are not relative to any of the roots you give. You can and should tests your patterns for |
Beta Was this translation helpful? Give feedback.
The root paths (aka recursion roots aka roots) are the starting points of the recursion into the filesystem.
E.g. if you call
borg create repo::archive ./.ssh /etc
, there are 2 roots:./.ssh
which is a relative path. relative to the current working directory./etc
which is a absolute path.So, the recursion will start from each of these and (by default) back up everything in there.
The (normalized) paths it will encounter might look like:
Note that there is no
./
in front of.ssh
and there is no/
in front ofetc
.These paths will be fed into the matcher which then matches it against your list of patterns (s…