Skip to content

Understanding --patterns-from and root paths (aka recursion roots aka roots) #7660

Answered by ThomasWaldmann
blueray453 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

.ssh
.ssh/known_hosts
...
etc
etc/fstab
etc/hosts
...
etc/apt/sources.list
...

Note that there is no ./ in front of .ssh and there is no / in front of etc.

These paths will be fed into the matcher which then matches it against your list of patterns (s…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@blueray453
Comment options

@blueray453
Comment options

@ThomasWaldmann
Comment options

Answer selected by blueray453
@blueray453
Comment options

@blueray453
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants