From 2544d85dca34d68b7bea01a7ed201a2d1a40902e Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 29 Mar 2022 23:59:40 +0200 Subject: [PATCH] added target to restore --- src/restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restore.sh b/src/restore.sh index 77f524a..be10b82 100755 --- a/src/restore.sh +++ b/src/restore.sh @@ -5,5 +5,5 @@ VOLUMES=$(find /backup -maxdepth 1 -type d -exec basename {} \; | tail -n +2) #loop volumes for VOLUME in $VOLUMES; do echo "Restoring $VOLUME" - restic --verbose restore latest --include "/backup/$VOLUME" + restic --verbose restore --target / latest --include "/backup/$VOLUME" done