mirror of
https://github.com/restic/restic.git
synced 2025-02-28 08:46:41 +00:00
gofmt + small doc fix
This commit is contained in:
parent
8010a0d90c
commit
73e9cac5c4
3 changed files with 8 additions and 7 deletions
|
@ -230,7 +230,7 @@ Or filter by host:
|
||||||
bdbd3439 2015-05-08 21:45:17 luigi /home/art
|
bdbd3439 2015-05-08 21:45:17 luigi /home/art
|
||||||
9f0bc19e 2015-05-08 21:46:11 luigi /srv
|
9f0bc19e 2015-05-08 21:46:11 luigi /srv
|
||||||
|
|
||||||
Combining filters are also possible.
|
Combining filters is also possible.
|
||||||
|
|
||||||
# Restore a snapshot
|
# Restore a snapshot
|
||||||
|
|
||||||
|
@ -241,12 +241,13 @@ restore the contents of the latest snapshot to `/tmp/restore-work`:
|
||||||
enter password for repository:
|
enter password for repository:
|
||||||
restoring <Snapshot of [/home/user/work] at 2015-05-08 21:40:19.884408621 +0200 CEST> to /tmp/restore-work
|
restoring <Snapshot of [/home/user/work] at 2015-05-08 21:40:19.884408621 +0200 CEST> to /tmp/restore-work
|
||||||
|
|
||||||
Use the word 'latest' to restore the last backup. You can also combine 'latest'
|
Use the word `latest` to restore the last backup. You can also combine `latest`
|
||||||
with the --host and --path filters to choose the last backup for a specific
|
with the `--host` and `--path` filters to choose the last backup for a specific
|
||||||
host, path or both.
|
host, path or both.
|
||||||
|
|
||||||
$ restic -r /tmp/backup restore latest --target ~/tmp/restore-work --path "/home/art" --host luigi
|
$ restic -r /tmp/backup restore latest --target ~/tmp/restore-work --path "/home/art" --host luigi
|
||||||
|
enter password for repository:
|
||||||
|
restoring <Snapshot of [/home/art] at 2015-05-08 21:45:17.884408621 +0200 CEST> to /tmp/restore-work
|
||||||
|
|
||||||
|
|
||||||
# Manage repository keys
|
# Manage repository keys
|
||||||
|
|
|
@ -14,7 +14,7 @@ type CmdRestore struct {
|
||||||
Exclude []string `short:"e" long:"exclude" description:"Exclude a pattern (can be specified multiple times)"`
|
Exclude []string `short:"e" long:"exclude" description:"Exclude a pattern (can be specified multiple times)"`
|
||||||
Include []string `short:"i" long:"include" description:"Include a pattern, exclude everything else (can be specified multiple times)"`
|
Include []string `short:"i" long:"include" description:"Include a pattern, exclude everything else (can be specified multiple times)"`
|
||||||
Target string `short:"t" long:"target" description:"Directory to restore to"`
|
Target string `short:"t" long:"target" description:"Directory to restore to"`
|
||||||
Host string `short:"h" long:"host" description:"Source Filter (for id=latest)"`
|
Host string `short:"h" long:"host" description:"Source Filter (for id=latest)"`
|
||||||
Paths []string `short:"p" long:"path" description:"Path Filter (absolute path;for id=latest) (can be specified multiple times)"`
|
Paths []string `short:"p" long:"path" description:"Path Filter (absolute path;for id=latest) (can be specified multiple times)"`
|
||||||
|
|
||||||
global *GlobalOptions
|
global *GlobalOptions
|
||||||
|
|
|
@ -48,8 +48,8 @@ func (t Table) Write(w io.Writer) error {
|
||||||
const TimeFormat = "2006-01-02 15:04:05"
|
const TimeFormat = "2006-01-02 15:04:05"
|
||||||
|
|
||||||
type CmdSnapshots struct {
|
type CmdSnapshots struct {
|
||||||
Host string `short:"h" long:"host" description:"Host Filter"`
|
Host string `short:"h" long:"host" description:"Host Filter"`
|
||||||
Paths []string `short:"p" long:"path" description:"Path Filter (absolute path) (can be specified multiple times)"`
|
Paths []string `short:"p" long:"path" description:"Path Filter (absolute path) (can be specified multiple times)"`
|
||||||
|
|
||||||
global *GlobalOptions
|
global *GlobalOptions
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue