You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see a usability issue in borg-patterns(1) manpage. The explanation talks in lengths about how the behavior is when user specified a selector prefix. What does not tell you is what happens if no selector is specified (which is apparently a valid thing, reading the second paragraph).
And what does happen in this case?
Are relative names ok? (relative to source folder)
Are directory names ok? (skipping whole directory contents, of course)
That is not clear. I had to find it out by trial-and-error and this is something I don't like to rely on.
And the result came a bit surprising. Imagine a sample usecase - making backups of a portable harddisk which gets different mount points here and there. Now I stored an "exclude-patterns.txt" on that disk which contains three folder names (just the names). And I run borg like:
src=/media/mountpoint; borg create --exclude-from $src/exclude-patterns.txt borgfolder::$(date +%F) $src
Result: the pattern didn't match anything.
Maybe it was matching those relative to $CWD? Who knows, but it does not look right.
The text was updated successfully, but these errors were encountered:
Hi,
I see a usability issue in borg-patterns(1) manpage. The explanation talks in lengths about how the behavior is when user specified a selector prefix. What does not tell you is what happens if no selector is specified (which is apparently a valid thing, reading the second paragraph).
And what does happen in this case?
Are relative names ok? (relative to source folder)
Are directory names ok? (skipping whole directory contents, of course)
That is not clear. I had to find it out by trial-and-error and this is something I don't like to rely on.
And the result came a bit surprising. Imagine a sample usecase - making backups of a portable harddisk which gets different mount points here and there. Now I stored an "exclude-patterns.txt" on that disk which contains three folder names (just the names). And I run borg like:
Result: the pattern didn't match anything.
Maybe it was matching those relative to $CWD? Who knows, but it does not look right.
The text was updated successfully, but these errors were encountered: