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       --json[=false]       set  output mode to JSON for commands that support
83       it
84
85
86       --key-hint=""      key ID of key  to  try  decrypting  first  (default:
87       $RESTIC_KEY_HINT)
88
89
90       --limit-download=0       limits  downloads  to a maximum rate in KiB/s.
91       (default: unlimited)
92
93
94       --limit-upload=0      limits uploads to a maximum rate in  KiB/s.  (de‐
95       fault: unlimited)
96
97
98       --no-cache[=false]      do not use a local cache
99
100
101       --no-lock[=false]      do not lock the repository, this allows some op‐
102       erations on read-only repositories
103
104
105       -o, --option=[]      set extended option (key=value, can  be  specified
106       multiple times)
107
108
109       --password-command=""      shell command to obtain the repository pass‐
110       word from (default: $RESTIC_PASSWORD_COMMAND)
111
112
113       -p, --password-file=""      file to read the repository  password  from
114       (default: $RESTIC_PASSWORD_FILE)
115
116
117       -q, --quiet[=false]      do not output comprehensive progress report
118
119
120       -r,  --repo=""       repository  to backup to or restore from (default:
121       $RESTIC_REPOSITORY)
122
123
124       --repository-file=""      file to read  the  repository  location  from
125       (default: $RESTIC_REPOSITORY_FILE)
126
127
128       --tls-client-cert=""       path  to  a  file containing PEM encoded TLS
129       client certificate and private key
130
131
132       -v, --verbose[=0]      be verbose (specify multiple times  or  a  level
133       using --verbose=n, max level/times is 3)
134
135
136

SEE ALSO

138       restic(1)
139
140
141
142generated by restic generate       Jan 2017                   restic backup(1)
Impressum