restore

Section profile.restore

This section configures restic command restore . Information on command and flags is copied from the restic manual pages.

The “restore” command extracts the data from a snapshot from the repository to a directory.

The special snapshot “latest” can be used to restore the latest snapshot in the repository.

Flags used by resticprofile only:
NameTypeDefaultNotes
run-afterone or more stringsRun shell command(s) after a successful restic command
run-after-failone or more stringsRun shell command(s) after failed restic or shell commands
run-beforeone or more stringsRun shell command(s) before a restic command
run-finallyone or more stringsRun shell command(s) always, after all other commands
Flags passed to the restic command line:
NameTypeDefaultNotes
excludeone or more stringsexclude a pattern
hosttrue / false OR one or more hostnamesonly consider snapshots for this host, when snapshot ID “latest” is given. Boolean true is replaced with the hostname of the system. Examples: true, false, "host"
iexcludeone or more stringssame as –exclude but ignores the casing of filenames. restic >= 0.10.0
iincludeone or more stringssame as –include but ignores the casing of filenames. restic >= 0.10.0
includeone or more stringsinclude a pattern, exclude everything else
pathtrue / false OR one or more stringsonly consider snapshots including this (absolute) path, when snapshot ID “latest” is given. Boolean true is replaced with the paths from section “backup”. Examples: true, false, "path"
sparsetrue / falsefalserestore files as sparse. restic >= 0.15.0
tagtrue / false OR one or more stringsonly consider snapshots including tag[,tag,…], when snapshot ID “latest” is given. Boolean true is replaced with the tags from section “backup”. Examples: true, false, "tag"
targetstring""directory to extract data to
verifytrue / falsefalseverify restored files content

Flags declared for the restic command line in section profile can be overridden in this section.