2022-03-14 19:26:20 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-03-29 00:45:11 +00:00
|
|
|
VOLUMES=$(find /tmp -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-27 17:28:00 +00:00
|
|
|
restic --verbose restore latest --include "/backup/$VOLUME"
|
2022-03-27 00:31:46 +00:00
|
|
|
done
|