Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOs: Exclusion pattern is ignored #542

Closed
deermo opened this issue Jul 4, 2020 · 3 comments
Closed

MacOs: Exclusion pattern is ignored #542

deermo opened this issue Jul 4, 2020 · 3 comments

Comments

@deermo
Copy link

deermo commented Jul 4, 2020

Describe the bug
As seen in this picture, my exclusion path (Library/Application Support/MobileSync/Backup) is ignored. I am however not sure if this is a bug or my mistake. However, after reading https://borgbackup.readthedocs.io/en/stable/usage/help.html, this relative path should work
Exclude Pattern ignored

Desktop (please complete the following information):

  • OS: macOS Catalina
@ThomasWaldmann
Copy link
Collaborator

Where exactly did you read that they "should work"?

@m3nu
Copy link
Contributor

m3nu commented Jul 5, 2020

Your source path and all of Vorta's paths are absolute, thus you need absolute exclude patterns, as explained in the docs you linked:

When you give /absolute/ as root, they will look like /absolute/…/file.ext.

The patterns in this text field use Borg's --exclude-from, thus fnmatch is used. So you probably want: (Vorta expands ~ internally)

~/Library/Caches
~/Documents/_old/*.mp4
*/.cache
*/.DS_Store

We do want to improve exclusion handlings and make them easier to understand. See #399 for further discussions.

@m3nu m3nu closed this as completed Jul 5, 2020
@deermo
Copy link
Author

deermo commented Jul 5, 2020

Thank you for your answer.

The path/filenames used as input for the pattern matching start from the currently active recursion root.
This is what made me think that while recursively parsing the folders, it will match. But I understand now that this is not how it works. Anyway, I think it's good to make them easier to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants