borgmatic borg with --dry-run passed to borgmatic does not actually perform a dry run #774
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
borgmatic-collective/borgmatic#774
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
If
borgmatic borgis run with the--dry-runflag passed to borgmatic the arbitrary borg command will be run without a corresponding--dry-runflag. This seems like a good way for a naive user to shoot themselves in the foot.Steps to reproduce
e.g.
borgmatic --dry-run -v 2 borg recreateActual behavior
Notice no
--dry-runin the borg cmdline.Expected behavior
Nothing potentially destructive happens.
Other notes / implementation ideas
I see two solutions to this.
--dry-runto borg.--dry-runto borgmatic when runningborgmatic borgis not supported and to use--dry-runin the borg cmdline instead. Don't actually do anything.I prefer 2.
borgmatic version
1.8.3
borgmatic installation method
n/a
Borg version
n/a
Python version
n/a
Database version (if applicable)
n/a
Operating system and version
n/a
Thanks for filing this! Of the two options you presented, I agree that number 2 probably makes the most sense given the nature of the
borgmatic borgaction.This is done in main and will be part of the next release. Thanks again for the suggestion!
Released in borgmatic 1.8.4!