Star

Created With

linkEnvironment

⚠ 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.

autorestic.yaml
1linkbackend:

2link foo:

3link type: ...

4link path: ...

5link key: secret123 # => AUTORESTIC_FOO_KEY=secret123

linkExample

This means we could remove key: secret123 from .autorestic.yaml and execute as follows:

1link$AUTORESTIC_FOO_KEY=secret123 autorestic backup ...

linkEnv file

Alternatively autorestic can load an env file, located next to autorestic.yml called .autorestic.env.

.autorestic.env
1linkAUTORESTIC_FOO_KEY=secret123

after that you can simply use autorestic as your are used to.

EnvironmentExampleEnv file

Home Quick Start Installation Configuration Upgrade

Locationschevron_right

Overview Hooks

Optionschevron_right

Cron Docker Volumes

Backendchevron_right
CLIchevron_right

Examples QA Community Contributors