forget commands you can pass any native flags to
restic. In addition you can specify flags for every command with
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).
1locations:2 foo:3 # ...4 options:5 all:6 some-flag: 1237 # Equivalent to8 --some-flag: 1239 backup:10 boolean-flag: true11 tag:12 - foo13 - bar
In this example, whenever
restic backup it will append a
--tag foo --tag bar to the native command.
1locations:2 foo:3 path: ...4 to: ...5 options:6 backup:7 tag:8 - foo9 - 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.
1global:2 all:3 cache-dir: ~/restic4 backup:5 tag:6 - foo78backends:9 # ...10locations:11 # ...