dump
Section profile.dump
This section configures restic command dump
.
Information on command and flags is copied from the restic manual pages.
The “dump” command extracts files from a snapshot from the repository. If a single file is selected, it prints its contents to stdout. Folders are output as a tar (default) or zip file containing the contents of the specified folder. Pass “/” as file name to dump the whole snapshot as an archive file.
The special snapshotID “latest” can be used to use the latest snapshot in the repository.
To include the folder content at the root of the archive, you can use the “snapshotID:subfolder” syntax, where “subfolder” is a path within the snapshot.
Flags used by resticprofile only:
Name | Type | Default | Notes |
---|---|---|---|
run-after | one or more strings | Run shell command(s) after a successful restic command | |
run-after-fail | one or more strings | Run shell command(s) after failed restic or shell commands | |
run-before | one or more strings | Run shell command(s) before a restic command | |
run-finally | one or more strings | Run shell command(s) always, after all other commands |
Flags passed to the restic command line:
Name | Type | Default | Notes |
---|---|---|---|
archive | string | "tar" | set archive format as “tar” or “zip”. restic >= 0.12.0 |
host | true / false OR one or more hostnames | only consider snapshots for this host, when snapshot ID “latest” is given (can be specified multiple times) (default: $RESTIC_HOST). Boolean true is replaced with the hostname of the system. Examples: true , false , "host" | |
path | true / false OR one or more strings | only consider snapshots including this (absolute) path, when snapshot ID “latest” is given (can be specified multiple times, snapshots must include all specified paths). Boolean true is replaced with the paths from section “backup”. Examples: true , false , "path" | |
tag | true / false OR one or more strings | only 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" | |
target | string | "" | write the output to target path. restic >= 0.17.0 |
Flags declared for the restic command line in section profile can be overridden in this section.