-
I'm trying to exclude every hidden folder in home dirs (like those created by e.g. java, rust, deno, many other programs etc) except .ssh The reason is, that the hidden files I am actually interested in are tracked in dotfiles but I don't want to push my private keys to some repo. In general it would be nice to have some sort of "textual config editing" - just providing a link to borgbase docs when you can't actually see what patterns and exclusions are being used doesn't seem to be enough to me. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You can use excludes and includes by using Feature request with examples for both options: #1991 The following "Extra arguments for borg" will include .ssh but exclude all other hidden files and folders in /home/username (and subfolders): Now, rereading your comment: It may be that you got confused about the meaning of "includes" and "excludes". Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
thx, but I don't really understand what I would specify in "sources" then? Nothing? Root? Is Vorta even a good choice for this use case? |
Beta Was this translation helpful? Give feedback.
-
@hesxenon So you have (at least) two different ways to choose your folders/ files for the backup:
You can mix the two approaches. :-) |
Beta Was this translation helpful? Give feedback.
If you want to use a list of includes and excludes, I recommend using the
--patterns-in
option and point to a text-file where all the sources / includes and excludes can easily be specified in a long list.Have a look at the following post in this feature request, for an example: #1991 (comment)
You can combine the --patterns-in option with additional create options. As far as I know, there are no limitations, here.
These patterns-files are referred to at the level of Vorta profiles and are applied each time you create a new backup.
You should also have a look at the borg specs for more details: https://borgbackup.readthedocs.io/en/stable/usage/help.html But keep in mind that borg support…