2022-03-14 19:26:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-03-29 00:54:39 +00:00
|
|
|
VOLUMES=$(find /backup -maxdepth 1 -type d -exec basename {} \; | tail -n +2)
|
2022-03-27 00:31:46 +00:00
|
|
|
|
|
|
|
#loop volumes
|
|
|
|
for VOLUME in $VOLUMES; do
|
|
|
|
echo "Restoring $VOLUME"
|
2022-03-29 21:59:40 +00:00
|
|
|
restic --verbose restore --target / latest --include "/backup/$VOLUME"
|
2022-03-27 00:31:46 +00:00
|
|
|
done
|