github.com/advanderveer/restic@v0.8.1-0.20171209104529-42a8c19aaea6/doc/man/restic-restore.1 (about) 1 .TH "restic backup" "1" "Jan 2017" "generated by `restic generate`" "" 2 .nh 3 .ad l 4 5 6 .SH NAME 7 .PP 8 restic\-restore \- Extract the data from a snapshot 9 10 11 .SH SYNOPSIS 12 .PP 13 \fBrestic restore [flags] snapshotID\fP 14 15 16 .SH DESCRIPTION 17 .PP 18 The "restore" command extracts the data from a snapshot from the repository to 19 a directory. 20 21 .PP 22 The special snapshot "latest" can be used to restore the latest snapshot in the 23 repository. 24 25 26 .SH OPTIONS 27 .PP 28 \fB\-e\fP, \fB\-\-exclude\fP=[] 29 exclude a \fB\fCpattern\fR (can be specified multiple times) 30 31 .PP 32 \fB\-h\fP, \fB\-\-help\fP[=false] 33 help for restore 34 35 .PP 36 \fB\-H\fP, \fB\-\-host\fP="" 37 only consider snapshots for this host when the snapshot ID is "latest" 38 39 .PP 40 \fB\-i\fP, \fB\-\-include\fP=[] 41 include a \fB\fCpattern\fR, exclude everything else (can be specified multiple times) 42 43 .PP 44 \fB\-\-path\fP=[] 45 only consider snapshots which include this (absolute) \fB\fCpath\fR for snapshot ID "latest" 46 47 .PP 48 \fB\-\-tag\fP=[] 49 only consider snapshots which include this \fB\fCtaglist\fR for snapshot ID "latest" 50 51 .PP 52 \fB\-t\fP, \fB\-\-target\fP="" 53 directory to extract data to 54 55 56 .SH OPTIONS INHERITED FROM PARENT COMMANDS 57 .PP 58 \fB\-\-cacert\fP=[] 59 path to load root certificates from (default: use system certificates) 60 61 .PP 62 \fB\-\-cache\-dir\fP="" 63 set the cache directory 64 65 .PP 66 \fB\-\-json\fP[=false] 67 set output mode to JSON for commands that support it 68 69 .PP 70 \fB\-\-limit\-download\fP=0 71 limits downloads to a maximum rate in KiB/s. (default: unlimited) 72 73 .PP 74 \fB\-\-limit\-upload\fP=0 75 limits uploads to a maximum rate in KiB/s. (default: unlimited) 76 77 .PP 78 \fB\-\-no\-cache\fP[=false] 79 do not use a local cache 80 81 .PP 82 \fB\-\-no\-lock\fP[=false] 83 do not lock the repo, this allows some operations on read\-only repos 84 85 .PP 86 \fB\-o\fP, \fB\-\-option\fP=[] 87 set extended option (\fB\fCkey=value\fR, can be specified multiple times) 88 89 .PP 90 \fB\-p\fP, \fB\-\-password\-file\fP="" 91 read the repository password from a file (default: $RESTIC\_PASSWORD\_FILE) 92 93 .PP 94 \fB\-q\fP, \fB\-\-quiet\fP[=false] 95 do not output comprehensive progress report 96 97 .PP 98 \fB\-r\fP, \fB\-\-repo\fP="" 99 repository to backup to or restore from (default: $RESTIC\_REPOSITORY) 100 101 102 .SH SEE ALSO 103 .PP 104 \fBrestic(1)\fP