2022-03-14 19:26:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-03-27 00:31:46 +00:00
|
|
|
VOLUMES=$(find /backup -maxdepth 1 -type d -printf '%f\n' | tail -n +2)
|
|
|
|
|
|
|
|
#loop volumes
|
|
|
|
for VOLUME in $VOLUMES; do
|
|
|
|
echo "Restoring $VOLUME"
|
|
|
|
restic -v restore latest --include "/backup/$VOLUME"
|
|
|
|
done
|
2022-03-14 19:26:20 +00:00
|
|
|
|
|
|
|
|