Cannot change repository passphrase (borg change-passphrase
)
#911
Loading…
x
Reference in New Issue
Block a user
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'd like to do and why
I tried to change the passphrase of the backup repository via
borgmatic borg key
:I took a look at the code: the above warning is really just a warning. The subcommand is executed anyway. This is good.
But the action seems to fail (or just do nothing). Maybe this is related to stdin / interactivity handling of borgmatic.
Then I tried to follow the advice of using borgmatic's integrated
key
action:Thus, I see two issues:
key
subcommand does not take the chosen sub-sub-command into account. But I failed to come up with a better phrasing for this message. Thus, probably it is not worth being changed.borg key change-passphrase
action does not seem to work while being wrapped intoborgmatic
.I am not sure, whether password changes are within the desired scope of borgmatic. Thus, you may feel free to close this issue if this is not the case.
Thank you for your time!
Other notes / implementation ideas
No response
Thanks for taking the time to file this! I can confirm both of the issues you've identified. The not taking the sub-sub-command into account in the warning is unfortunate, but yeah, may or may not be worth attempting to fix. But the lack of borgmatic wrapping
change-passphrase
seems like something pretty straightforward to implement and within the scope of what borgmatic can/should do.This is a likely cause. One of the downsides of the
borgmatic borg
escape hatch is that the "wrapped" commands aren't truly wrapped, and so borgmatic isn't smart enough to know what to do with input/output.Wrapping of
key change-passphrase
is implemented in main and will be part of the next release! Thanks again for the suggestion.Released in borgmatic 1.9.0!