From 88bccae363dbdd8626f3fa919881020b41f85d31 Mon Sep 17 00:00:00 2001 From: Bruno Bigras Date: Sat, 24 Nov 2018 05:10:08 -0500 Subject: [PATCH] restic: add how to restore a specific file (#2605) --- pages/common/restic.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/restic.md b/pages/common/restic.md index 2249da7b1..75b42d454 100644 --- a/pages/common/restic.md +++ b/pages/common/restic.md @@ -18,6 +18,10 @@ `restic -r {{path/to/repository}} restore {{snapshot_id}} {{path/to/target}}` +- Restore a specific path from a specific backup to a target directory: + +`restic -r {{path/to/repository}} --include {{path/to/restore}} --target {{path/to/target}} restore {{snapshot_id}}` + - Clean up the repository and keep only the most recent snapshot of each unique backup: `restic forget --keep-last 1 --prune`