1restic backup(1)                                              restic backup(1)
2
3
4

NAME

6       restic-restore - Extract the data from a snapshot
7
8
9

SYNOPSIS

11       restic restore [flags] snapshotID
12
13
14

DESCRIPTION

16       The "restore" command extracts the data from a snapshot from the repos‐
17       itory to a directory.
18
19
20       The special snapshot "latest" can be used to restore the  latest  snap‐
21       shot in the repository.
22
23
24

EXIT STATUS

26       Exit  status  is 0 if the command was successful, and non-zero if there
27       was any error.
28
29
30

OPTIONS

32       -e, --exclude=[]      exclude a  pattern  (can  be  specified  multiple
33       times)
34
35
36       -h, --help[=false]      help for restore
37
38
39       -H, --host=[]      only consider snapshots for this host when the snap‐
40       shot ID is "latest" (can be specified multiple times)
41
42
43       --iexclude=[]      same as --exclude but ignores the  casing  of  file‐
44       names
45
46
47       --iinclude=[]       same  as  --include but ignores the casing of file‐
48       names
49
50
51       -i, --include=[]      include a pattern, exclude everything  else  (can
52       be specified multiple times)
53
54
55       --path=[]       only  consider  snapshots which include this (absolute)
56       path for snapshot ID "latest"
57
58
59       --tag=[]      only consider snapshots which include  this  taglist  for
60       snapshot ID "latest"
61
62
63       -t, --target=""      directory to extract data to
64
65
66       --verify[=false]      verify restored files content
67
68
69

OPTIONS INHERITED FROM PARENT COMMANDS

71       --cacert=[]      file to load root certificates from (default: use sys‐
72       tem certificates)
73
74
75       --cache-dir=""      set the cache directory. (default: use  system  de‐
76       fault cache directory)
77
78
79       --cleanup-cache[=false]      auto remove old cache directories
80
81
82       --compression=auto      compression mode (only available for repository
83       format version 2), one of (auto|off|max)
84
85
86       --insecure-tls[=false]      skip TLS certificate verification when con‐
87       necting to the repository (insecure)
88
89
90       --json[=false]       set  output mode to JSON for commands that support
91       it
92
93
94       --key-hint=""      key ID of key  to  try  decrypting  first  (default:
95       $RESTIC_KEY_HINT)
96
97
98       --limit-download=0       limits  downloads  to a maximum rate in KiB/s.
99       (default: unlimited)
100
101
102       --limit-upload=0      limits uploads to a maximum rate in  KiB/s.  (de‐
103       fault: unlimited)
104
105
106       --no-cache[=false]      do not use a local cache
107
108
109       --no-lock[=false]      do not lock the repository, this allows some op‐
110       erations on read-only repositories
111
112
113       -o, --option=[]      set extended option (key=value, can  be  specified
114       multiple times)
115
116
117       --pack-size=0       set target pack size in MiB, created pack files may
118       be larger (default: $RESTIC_PACK_SIZE)
119
120
121       --password-command=""      shell command to obtain the repository pass‐
122       word from (default: $RESTIC_PASSWORD_COMMAND)
123
124
125       -p,  --password-file=""       file to read the repository password from
126       (default: $RESTIC_PASSWORD_FILE)
127
128
129       -q, --quiet[=false]      do not output comprehensive progress report
130
131
132       -r, --repo=""      repository to backup to or  restore  from  (default:
133       $RESTIC_REPOSITORY)
134
135
136       --repository-file=""       file  to  read  the repository location from
137       (default: $RESTIC_REPOSITORY_FILE)
138
139
140       --tls-client-cert=""      path to a file  containing  PEM  encoded  TLS
141       client certificate and private key
142
143
144       -v,  --verbose[=0]       be  verbose (specify multiple times or a level
145       using --verbose=n, max level/times is 3)
146
147
148

SEE ALSO

150       restic(1)
151
152
153
154generated by restic generate       Jan 2017                   restic backup(1)
Impressum