Changing repo password without prompt

Hi there – is it possible to change a repository’s password without being prompted? It’s not clear from the documentation that I can see. (If not, that’s OK – just wondering if I can script a password change more easily.)

Also – is it a bad idea to change a password while a backup or restore is running? Should changing a password be exclusive?

It’s not yet possible, it’s a limitation in restic and it’s tracked here: key add, key passwd: Allow new password via scripting · Issue #827 · restic/restic · GitHub

It’s not, you can do that. restic only reads the key files at the beginning, and then has the underlying encryption key in memory, which is not changed when the password is changed.

1 Like

Great! Thanks for the link to the issue, I didn’t find that in my searching (wrong keywords I guess). Thank you for the information. Great design!