Excludes not working #1614
|
What's wrong with my syntax? I see no documentation... /.cache/* |
Replies: 2 comments 7 replies
|
I don't see any examples of how to use the excludes function. Not a single screen shot, not a single frame of any tutorial video shows an example. Putting them on different lines doesn't seem to work, nor does a comma. This is what the profile export generates, which is obviously not correct. |
|
Hey @benjamindaines, How-to get to the docsin the GUI is a (more) button, which leads to the docs of borg. Vorta's default pattern typeNote: Vorta use Switch pattern typeFnmatch supports '*' for matching any number of chars; Note that his includes the path separator ('/'). Thus, Your patterns/.cache/*
/.local/share/Trash/*
/VirtualBox VMs/*My guess is, that you're not aware that since borg 1.2 all “fs paths are normalized”. This means even if you select to backup Your pattern Using “Fnmatch”-Style pattern to exclude everything in a single directory isn't giving the optimal performance, either. Following the practice, by using “Path prefix”-style matching, the correct exclude file patterns in your case would be: |
Hey @benjamindaines,
How-to get to the docs
in the GUI is a (more) button, which leads to the docs of borg.
Vorta's default pattern type
Note: Vorta use
--exclude-from, as suggested by the “Exclude Patterns” headline of the field in the GUI. So the default pattern type is “Fnmatch”.Switch pattern type
Fnmatch supports '*' for matching any number of chars; Note that his includes the path separator ('/'). Thus,
a/b/c,a/c, andabcwould all match the patterna*. If you need special handling for path separators, you can switch to “Shell-style patterns” by addingsh:in front of your pattern. That's obviously not limited to this type, you can switch to all of them.Your patterns