backup-docker/src/restore.sh
Djeeberjr 2544d85dca
All checks were successful
continuous-integration/drone/push Build is passing
added target to restore
2022-03-29 23:59:40 +02:00

10 lines
247 B
Bash
Executable File

#!/usr/bin/env bash
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 --target / latest --include "/backup/$VOLUME"
done