Star

Created With

linkOptions

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

linkExample

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

linkPriority

Options can be set globally, on the backends or on the locations.

The priority is as follows: location > backend > global.

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

1linkglobal:

2link all:

3link cache-dir: ~/restic

4link backup:

5link tag:

6link - foo

7link

8linkbackends:

9link # ...

10linklocations:

11link # ...

OptionsExamplePriorityGlobal Options

Home Quick Start Installation Configuration Upgrade

Locationschevron_right

Overview Hooks

Optionschevron_right

Cron Docker Volumes

Backendchevron_right
CLIchevron_right
Migrationchevron_right

Examples Docker QA Community Contributors