1restic backup(1) restic backup(1)
2
3
4
6 restic-restore - Extract the data from a snapshot
7
8
9
11 restic restore [flags] snapshotID
12
13
14
16 The "restore" command extracts the data from a snapshot from the
17 repository to a directory.
18
19
20 The special snapshot "latest" can be used to restore the latest
21 snapshot in the repository.
22
23
24
26 Exit status is 0 if the command was successful, and non-zero if there
27 was any error.
28
29
30
32 -e, --exclude=[]
33 exclude a pattern (can be specified multiple times)
34
35
36 -h, --help[=false]
37 help for restore
38
39
40 -H, --host=[]
41 only consider snapshots for this host when the snapshot ID is
42 "latest" (can be specified multiple times)
43
44
45 --iexclude=[]
46 same as --exclude but ignores the casing of filenames
47
48
49 --iinclude=[]
50 same as --include but ignores the casing of filenames
51
52
53 -i, --include=[]
54 include a pattern, exclude everything else (can be specified
55 multiple times)
56
57
58 --path=[]
59 only consider snapshots which include this (absolute) path for
60 snapshot ID "latest"
61
62
63 --tag=[]
64 only consider snapshots which include this taglist for snapshot ID
65 "latest"
66
67
68 -t, --target=""
69 directory to extract data to
70
71
72 --verify[=false]
73 verify restored files content
74
75
76
78 --cacert=[]
79 file to load root certificates from (default: use system
80 certificates)
81
82
83 --cache-dir=""
84 set the cache directory. (default: use system default cache
85 directory)
86
87
88 --cleanup-cache[=false]
89 auto remove old cache directories
90
91
92 --json[=false]
93 set output mode to JSON for commands that support it
94
95
96 --key-hint=""
97 key ID of key to try decrypting first (default: $RESTIC_KEY_HINT)
98
99
100 --limit-download=0
101 limits downloads to a maximum rate in KiB/s. (default: unlimited)
102
103
104 --limit-upload=0
105 limits uploads to a maximum rate in KiB/s. (default: unlimited)
106
107
108 --no-cache[=false]
109 do not use a local cache
110
111
112 --no-lock[=false]
113 do not lock the repository, this allows some operations on
114 read-only repositories
115
116
117 -o, --option=[]
118 set extended option (key=value, can be specified multiple times)
119
120
121 --password-command=""
122 shell command to obtain the repository password from (default:
123 $RESTIC_PASSWORD_COMMAND)
124
125
126 -p, --password-file=""
127 file to read the repository password from (default:
128 $RESTIC_PASSWORD_FILE)
129
130
131 -q, --quiet[=false]
132 do not output comprehensive progress report
133
134
135 -r, --repo=""
136 repository to backup to or restore from (default:
137 $RESTIC_REPOSITORY)
138
139
140 --repository-file=""
141 file to read the repository location from (default:
142 $RESTIC_REPOSITORY_FILE)
143
144
145 --tls-client-cert=""
146 path to a file containing PEM encoded TLS client certificate and
147 private key
148
149
150 -v, --verbose[=0]
151 be verbose (specify multiple times or a level using --verbose=n,
152 max level/times is 3)
153
154
155
157 restic(1)
158
159
160
161generated by `restic generate` Jan 2017 restic backup(1)