From 3d1d7ba25684ac8e7c71771f65ebbc5de3abd9b4 Mon Sep 17 00:00:00 2001 From: Nicco Date: Wed, 4 Dec 2019 20:45:58 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a950fc1..611dcbe 100644 --- a/README.md +++ b/README.md @@ -54,8 +54,10 @@ backends: Then we check if everything is correct by running the `check` command. We will pass the `-a` (or `--all`) to tell autorestic to check all the locations. +Lets see a more realistic example (from the config above) + ``` -autorestic check -a +autorestic check -l important ``` If we would check only one location we could run the following: `autorestic -l home check`. @@ -72,6 +74,14 @@ autorestic backup -a autorestic restore -a -- --target /path/where/to/restore ``` +This will restore all the locations to the selected target. If for one location there are more than one backends specified autorestic will take the first one. + +``` +autorestic restore -l home --from hdd -- --target /path/where/to/restore +``` + +This will restore the location `home` to the `/path/where/to/restore` folder and taking the data from the backend `hdd` + ## 🗂 Locations From 632062a23fa472987fc7a0ce8d131d225083ba34 Mon Sep 17 00:00:00 2001 From: Nicco Date: Wed, 4 Dec 2019 20:50:12 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 611dcbe..8d82a6c 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,13 @@ autorestic backup -a ### Restore ``` -autorestic restore -a -- --target /path/where/to/restore +autorestic restore -a --to /path/where/to/restore ``` This will restore all the locations to the selected target. If for one location there are more than one backends specified autorestic will take the first one. ``` -autorestic restore -l home --from hdd -- --target /path/where/to/restore +autorestic restore -l home --from hdd --to /path/where/to/restore ``` This will restore the location `home` to the `/path/where/to/restore` folder and taking the data from the backend `hdd`