key-passwd

Section profile.key-passwd

This section configures restic command key-passwd available since 0.17.0 . Information on command and flags is copied from the restic manual pages.

The “passwd” sub-command creates a new key, validates the key and remove the old key ID. Returns the new key ID.

Flags used by resticprofile only:
NameTypeDefaultNotes
run-afterone or more stringsRun shell command(s) after a successful restic command
run-after-failone or more stringsRun shell command(s) after failed restic or shell commands
run-beforeone or more stringsRun shell command(s) before a restic command
run-finallyone or more stringsRun shell command(s) always, after all other commands
Flags passed to the restic command line:
NameTypeDefaultNotes
hosttrue / false OR hostname""the hostname for new key. Boolean true is replaced with the hostname of the system. Examples: true, false, "host" . restic >= 0.17.0
new-insecure-no-passwordtrue / falsefalseadd an empty password for the repository (insecure). restic >= 0.17.0
new-password-filestring""file from which to read the new password. restic >= 0.17.0
userstring""the username for new key. restic >= 0.17.0

Flags declared for the restic command line in section profile can be overridden in this section.