You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
869 B
869 B
Environment
⚠ Available since version
v1.3.0
Sometimes it's favorable not having the encryption keys in the config files.
For that autorestic
allows passing the backend keys as ENV
variables, or through an env file.
The syntax for the ENV
variables is as follows: AUTORESTIC_[BACKEND NAME]_KEY
.
backend:
foo:
type: ...
path: ...
key: secret123 # => AUTORESTIC_FOO_KEY=secret123
Example
This means we could remove key: secret123
from .autorestic.yaml
and execute as follows:
AUTORESTIC_FOO_KEY=secret123 autorestic backup ...
Env file
Alternatively autorestic
can load an env file, located next to autorestic.yml
called .autorestic.env
.
AUTORESTIC_FOO_KEY=secret123
after that you can simply use autorestic
as your are used to.
:ToCPrevNext