For the backup
and forget
commands you can pass any native flags to restic
. In addition you can specify flags for every command with all
.
If flags don't start with -
they will get prefixed with --
.
Flags without arguments can be set to true
. They will be handled accordingly.
âšī¸ It is also possible to set options for an entire backend or globally (see below).
1linklocations:
2link foo:
3link # ...
4link options:
5link all:
6link some-flag: 123
7link # Equivalent to
8link --some-flag: 123
9link backup:
10link boolean-flag: true
11link tag:
12link - foo
13link - bar
In this example, whenever autorestic
runs restic backup
it will append a --tag foo --tag bar
to the native command.
1linklocations:
2link foo:
3link path: ...
4link to: ...
5link options:
6link backup:
7link tag:
8link - foo
9link - bar
Options can be set globally, on the backends or on the locations.
The priority is as follows: location > backend > global
.
It is possible to specify global flags that will be run every time restic is invoked. To do so specify them under global
in your config file.
1linkglobal:
2link all:
3link cache-dir: ~/restic
4link backup:
5link tag:
6link - foo
7link
8linkbackends:
9link # ...
10linklocations:
11link # ...
Home Quick Start Installation Configuration Upgrade