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.
1.2 KiB
1.2 KiB
Options
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).
locations:
foo:
# ...
options:
all:
some-flag: 123
# Equivalent to
--some-flag: 123
backup:
boolean-flag: true
tag:
- foo
- bar
Example
In this example, whenever autorestic
runs restic backup
it will append a --tag abc --tag
to the native command.
locations:
foo:
path: ...
to: ...
options:
backup:
tag:
- foo
- bar
Global Options
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.
global:
all:
cache-dir: ~/restic
backup:
tag:
- foo
backends:
# ...
locations:
# ...
:ToCPrevNext