added target to restore
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Djeeberjr 2022-03-29 23:59:40 +02:00
parent 84d8406f6e
commit 2544d85dca

View File

@ -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