resticprofile
resticprofile copied to clipboard
`resticprofile key passwd` not working?
I'm trying to change my repository password but can't seem to do it with resticprofile:
$ resticprofile key passwd
2025/11/14 08:41:37 using configuration file: profiles.toml
2025/11/14 08:41:37 profile 'default': starting 'key'
repository c3bac7fd opened (version 2, compression level auto)
reading repository password from stdin
Fatal: an empty password is not allowed by default. Pass the flag `--insecure-no-password` to restic to disable this check
2025/11/14 08:41:47 key on profile 'default': exit status 1
$ cat new-password.txt | resticprofile key passwd
2025/11/14 08:39:32 using configuration file: profiles.toml
2025/11/14 08:39:32 profile 'default': starting 'key'
repository c3bac7fd opened (version 2, compression level auto)
reading repository password from stdin
Fatal: an empty password is not allowed by default. Pass the flag `--insecure-no-password` to restic to disable this check
2025/11/14 08:39:43 key on profile 'default': exit status 1
Yes, sorry, this is actually a known issue #71
It works when using the --new-password-file but cannot ask for a password to be typed.
I'll fix it at some point 👼🏻