change prefix for glob_archives or create an alias glob_archives to prefix ? #588
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#588
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
Hello,
I just upgraded to borg v1.2.2 and borgmatic v1.7.2
Reading the changelog from borg, I noticed that --prefix is deprecated, use -a / --glob-archives, see borgbackup #6806
--prefix still works on 1.2.x, but will not work on 2.x
example:
Steps to reproduce (if a bug)
Not a bug
Actual behavior (if a bug)
Not a bug
Expected behavior (if a bug)
Other notes / implementation ideas
I would like an alias to what today is prefix or another option like glob_archives to use instead of prefix.
Right now I know that with the prefix option the yaml is calling --glob-archives, so everything is good, but would be nice to have the option by the name.
Environment
borgmatic version: [1.7.2]
borgmatic installation method: [Docker container]
Borg version: [1.2.2]
Python version: [3.10.6]
Database version (if applicable): [version here]
Use
psql --version
ormysql --version
on client and server.operating system and version: [OS here]
Thanks for filing this. Adding
glob_archives
as an option seems reasonable to me! Maybe though it shouldn't act exactly the same asprefix
, so for instance you'd have to use a value ofmyrepo-*
if you wanted the same behavior as aprefix
ofmyrepo-
? That would also support use cases like aglob_archives
value of*glob*
. In any case, do you think it would make sense to error if bothprefix
andglob_archives
are used in a configuration section?No, thank you for all your hard work.
I agree with you.
I think that having an error is great in this case.
Borg 2.0.0 beta 3 has just renamed
--glob-archives
to--match-archives
, so the borgmatic option would probably be calledmatch_archives
! Additionally, the syntax has changed a bit from--glob-archives
..--match-archives
supports additional pattern styles now.This is implemented with a new
match_archives
option and will part of the next release. The documentation for this feature will appear here shortly: https://torsion.org/borgmatic/docs/how-to/make-per-application-backups/#archive-namingThanks for suggesting this!