backup-docker/restore.sh
Djeeberjr 5f8248d236
All checks were successful
continuous-integration/drone/push Build is passing
added entrypoint
2022-03-27 01:31:46 +01:00

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