-
-
Notifications
You must be signed in to change notification settings - Fork 754
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
[DOC] #4118 - Explain difference between --exclude and --pattern. #4783
[DOC] #4118 - Explain difference between --exclude and --pattern. #4783
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4783 +/- ##
==========================================
+ Coverage 83.84% 83.91% +0.07%
==========================================
Files 37 37
Lines 9762 9762
Branches 1622 1622
==========================================
+ Hits 8185 8192 +7
+ Misses 1103 1097 -6
+ Partials 474 473 -1
Continue to review full report at Codecov.
|
src/borg/archiver.py
Outdated
|
||
Via ``--pattern`` or ``--patterns-from`` you can define BOTH inclusion and exclusion | ||
of files using pattern prefixes ``+`` and ``-``. With ``--exclude`` and | ||
``--exlude-file`` ONLY excludes are defined. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not --exlude-file
, but --exclude-from
.
one could also continue the last sentence with "... and you need to use --include
... to define includes ONLY.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stupid me...
But I'm not sure what you mean with --include. There is no --include mentioned in e.g. borg create, is this a new undocumented option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some feedback
…ttern Note shortened.
Do we need same change for 1.1-maint?h |
…ttern. (borgbackup#4783) docs: Explain difference between --exclude and --pattern, fixes borgbackup#4118
In my opinion the borg help pattern is already quite good in explaining the --exclude and --pattern features, so I just added a note that explicitly states the additional prefix in --pattern lines.
If you read this help carefully it should be sufficient.