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
Exclude patterns not being applied #1054
Comments
Update: Okay, replacing |
Usually |
Sigh, yes, you are absolutely right. The exclude patterns are absolute in regards to what you backup: So, this is the corrected exclude file list for your use case:
|
@ibib On my Mac, my home directory is @fd0 Ah! That makes more sense, thanks for explaining. So Thanks so much for the explanation. Now I understand better why 549 is an issue you want to fix. 😄 |
Output of
restic version
restic 0.6.1 (v0.6.1-126-gb0fb95df)
compiled with go1.8.3 on darwin/amd64
How did you start restic exactly? (Include the complete command line)
What backend/server/service did you use?
sftp to LAN
Expected behavior
Skip the files matching the pattern in exclude.txt
Actual behavior
Files were included unless I drastically loosened the pattern to the point where the pattern is too ambiguous.
Steps to reproduce the behavior
Using an exclude file like this:
My goal is to skip dotfiles and a few specific folders in my $HOME directory (named
matt
) (but not every folder named "Applications" for example). Oh, and any .vmdk files (they can be huge!)When I relaxed the patterns to this:
it worked (meaning it skipped the folders) but this is too ambiguous, as I don't want to skip all folders named Downloads, for example.
Do you have any idea what may have caused this?
Probably me still not understanding exclude patterns correctly. 😄 I did read #1005 and I guess I'm confused if absolute paths are required for --exclude or if repo-absolute paths are required like with --include.
The text was updated successfully, but these errors were encountered: