Skip to content

Include specific folders of excluded folder #2156

Answered by goebbe
dgraziotin asked this question in FAQ
Discussion options

You must be logged in to vote

@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 --…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@dgraziotin
Comment options

@goebbe
Comment options

@goebbe
Comment options

@dgraziotin
Comment options

@goebbe
Comment options

Answer selected by dgraziotin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
2 participants