From 3f4d0a37fdf156d2d1d3dfdbdd34b8bdd58aefa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Babi=C4=8D?= Date: Sat, 17 Jul 2021 15:10:38 +0200 Subject: [PATCH] restic: fix restore example (#6240) --- pages/common/restic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/restic.md b/pages/common/restic.md index d4eb50e4b..1ac5a3dfa 100644 --- a/pages/common/restic.md +++ b/pages/common/restic.md @@ -17,11 +17,11 @@ - Restore a specific backup snapshot to a target directory: -`restic --repo {{path/to/repository}} restore {{snapshot_id}} {{path/to/target}}` +`restic --repo {{path/to/repository}} restore {{latest|snapshot_id}} --target {{path/to/target}}` - Restore a specific path from a specific backup to a target directory: -`restic --repo {{path/to/repository}} --include {{path/to/restore}} --target {{path/to/target}} restore {{snapshot_id}}` +`restic --repo {{path/to/repository}} restore {{snapshot_id}} --target {{path/to/target}} --include {{path/to/restore}}` - Clean up the repository and keep only the most recent snapshot of each unique backup: