Implemented recovery script

This commit is contained in:
Kevin Veen-Birkenbach 2020-10-13 13:32:08 +02:00
parent ce14052787
commit f325a79047

6
docker-volume-recover.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# @param $1 Volume-Name
volume_name="$1"
backup_path="$2"
docker volume create "$volume_name"
docker run --rm -v "$volume_name:/recover/" -v "$backup_path:/backup/" "kevinveenbirkenbach/alpine-rsync" sh -c "rsync -avv /backup/ /recover/"