12 lines
225 B
Bash
12 lines
225 B
Bash
#!/usr/bin/env bash
|
|
|
|
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
|
|
|
|
|