Include specific folders of excluded folder #2156
-
I defined a simple backup with source I want to exclude backing up I thought that the following would achieve this but I am likely using it wrong.
(I also tried |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
@dgraziotin You can find examples on how-to use both options here: #1991 The following "Extra arguments for borg" should work for your case: If you have many or complicated patterns, it is likely better to use Order matters! Always start with include "+" patterns, then specify exclude "-" patterns. |
Beta Was this translation helpful? Give feedback.
-
In Vorta (version 0.10.2 and earlier) there is an issue concerning the match of items names that contain whitespace. In future version of Vorta, in "Extra arguments for borg" the standard borg syntax should work to match names with whitespace. Example for patterns to "include" an item with name
|
Beta Was this translation helpful? Give feedback.
@dgraziotin
It seems that you want to use a combination of "excludes" and "includes".
This is possible, however, you have to use
--pattern
or--patterns-from
options, via Vorta > Schedule > Shell Commands > Extra arguments for borg create.You can find examples on how-to use both options here: #1991
The following "Extra arguments for borg" should work for your case:
--pattern=+ Users/daniel/Library/Mobile Documents/ --pattern=+ re:Users/daniel/Library/Application\sSupport --pattern=- Users/daniel/Library/**/.*
When using
--pattern
(as a command line option), keep in mind that matching special characters can be tricky.If you have many or complicated patterns, it is likely better to use
--…