backup-docker/src/restore.sh

10 lines
236 B
Bash
Raw Normal View History

2022-03-14 19:26:20 +00:00
#!/usr/bin/env bash
2022-03-29 00:54:39 +00:00
VOLUMES=$(find /backup -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