Restic: Support password as environment variable

Created on 18 Jan 2018  ·  3Comments  ·  Source: restic/restic

Hello !

For situation where we don't want to store the password on the server, and control everything through a remote orchestration such as ansible which can execute one shot commands using crypted inventory variables, it would be great to support password as environment variables. (Meanwhile, I'll just create the file and delete it, and hope no human interrupts the software or whatever and leaves the cleartext password file on the server).

What do you think ?

questioproblem

Most helpful comment

@jpic There's already what you're looking for, RESTIC_PASSWORD as well as RESTIC_PASSWORD_FILE and RESTIC_REPOSITORY.

All 3 comments

@jpic There's already what you're looking for, RESTIC_PASSWORD as well as RESTIC_PASSWORD_FILE and RESTIC_REPOSITORY.

Thanks for the answer @rawtaz, closing.

Was this page helpful?
0 / 5 - 0 ratings