From f055f5dea80b536aa577a43931c7fe44e2bc85a9 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 28 Oct 2019 12:00:54 -0700 Subject: [PATCH] Clarify borgmatic restore example with no leading slash. --- docs/how-to/restore-a-backup.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/how-to/restore-a-backup.md b/docs/how-to/restore-a-backup.md index 89756fc3a..ce9e56fe2 100644 --- a/docs/how-to/restore-a-backup.md +++ b/docs/how-to/restore-a-backup.md @@ -55,10 +55,13 @@ everything from an archive. To do that, tack on one or more `--restore-path` values. For instance: ```bash -borgmatic extract --archive host-2019-... --restore-path /path/1 /path/2 +borgmatic extract --archive host-2019-... --restore-path path/1 path/2 ``` -Like a whole-archive restore, this also restores into the current directory. +Note that the specified restore paths should not have a leading slash. Like a +whole-archive restore, this also restores into the current directory. So for +example, if you happen to be in the directory `/var` and you run the `extract` +command above, borgmatic will restore `/var/path/1` and `/var/path/2`. ## Related documentation