Troubles with 'exclude_from:' #207
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#207
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Supply list of exclude patterns from a file
Steps to reproduce (if a bug)
Actual behavior (if a bug)
-rw-r--r-- websiteuser websitegroup 39961 Fri, 2019-08-23 08:36:47 var/www/vhosts/website.com/httpdocs/wp-content/cache/db/singletables/27c/438/27c43859676cb64159242c6f5a0c9276.php
is being backed upExpected behavior (if a bug)
it shouldn't back up patterns found in common-exclude file
Other notes / implementation ideas
Environment
borgmatic version: 1.3.12
borgmatic installation method: pip
Borg version: borg 1.1.9
Python version: Python 3.6.8
operating system and version: CentOS 7
Please tell me what am I missing :)
EDIT: so it looks like it doesn't like
-
when it's in the file :)Thanks for filing this! I think the problem may be that you're using the Borg "patterns" format instead of the expected Borg "excludes" format. So you've got two options:
excludes_from
topatterns_from
. That way, it'll be able to consume your existing patterns file.excludes_from
and rewrite your excludes file to be of the expected format. That format is just a series of paths to exclude, no-
prefix and noR /
.Let me know if either of those does the trick!
Thanks for the detailed explanation :)
Problem solved.
Glad to hear it!