Document the impact of the slashdot hack to pattern matching#9647
Conversation
... or rather that the slashdot hack doesn't impact pattern matching at all. Add a note to `borg help patterns`.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.4-maint #9647 +/- ##
=============================================
- Coverage 81.97% 81.96% -0.02%
=============================================
Files 38 38
Lines 11329 11365 +36
Branches 1788 1793 +5
=============================================
+ Hits 9287 9315 +28
- Misses 1455 1461 +6
- Partials 587 589 +2 ☔ View full report in Codecov by Sentry. |
|
Since this is purely a docs update, I'd say that the CI failures are unrelated. If not, just give me a heads up of what might be wrong 👍 |
|
netbsd fails frequently due to segfaults of the python interpreter. they ignore the ticket about it since longer... |
|
Do we also have other strip options and do they also need a docs update? |
You mean like I'm not aware of any other strip options; AFAIK the slashdot hack is the only way to manipulate archive paths? The various exclusion options ( |
|
|
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin master
git worktree add -d .worktree/backport-9647-to-master origin/master
cd .worktree/backport-9647-to-master
git switch --create backport-9647-to-master
git cherry-pick -x ae1440ed7e8155a3c0807cdbdfd8f18378f40a98 |
|
Can you port it to master, please? |
When using the slashdot hack (e.g.
/this/gets/stripped/./this/gets/archived),--patternand--excludematch against the unstripped path (i.e.this/gets/stripped/this/gets/archived, not againstthis/gets/archived). Document this withborg help patterns. I thought about also adding a note toborg create --help, but don't think that this is necessary there.PR is against
1.4-maintbecause I tested with Borg 1.4. I assume it's the same with Borg 2.0, will open a backport PR later.Verified with Borg 1.4.4 with the following, click to expand.