-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
borg2: consider dropping --exclude and --exclude-from #8539
Comments
@goebbe Yeah, good idea, needs to be considered. Some additional points:
|
With respect to the docs, for me, the main confusion came from the mixing of Some thoughts on the confusing parts in the current docs/ implementation:
Excludes / includes / patterns seem to be an important concept for a backup specification (create?) I would rather dedicate an own section to it instead of putting it into Miscellaneous Help. |
Here are some side-by-side examples with equivalent matches using In borg 1.4 the following should be equivalent: Note: Depending on the required match, with Equivalents, using pattern-files:
Note: Explicit Equivalent, using
Or equivalently (again using
|
Another difference between With |
In borg 1.4 there are two distinct sets of options that can be used to define excludes:
--exclude
and--exclude-from
AND
--pattern
or--patterns-from
To cite borg documentation:
From a user's point of view:
--exclude style seems to provide only a subset of --pattern style.
Both (--exclude and --pattern) make use of patterns - but have different defaults - which can be confusing.
It is not clear why --exclude style exists.
I just wondered if borg2 would provide a good opportunity to drop --exclude and --exclude-from and to only use
--pattern and --patterns-from, in the future. But maybe I just miss important differences between both set of options.
The text was updated successfully, but these errors were encountered: