borgmatic borg with --dry-run passed to borgmatic does not actually perform a dry run #774
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#774
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
If
borgmatic borg
is run with the--dry-run
flag passed to borgmatic the arbitrary borg command will be run without a corresponding--dry-run
flag. 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 recreate
Actual behavior
Notice no
--dry-run
in the borg cmdline.Expected behavior
Nothing potentially destructive happens.
Other notes / implementation ideas
I see two solutions to this.
--dry-run
to borg.--dry-run
to borgmatic when runningborgmatic borg
is not supported and to use--dry-run
in 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 borg
action.This is done in main and will be part of the next release. Thanks again for the suggestion!
Released in borgmatic 1.8.4!