Updated recovery

This commit is contained in:
Kevin Veen-Birkenbach 2022-02-12 12:20:46 +00:00
parent 7cee6cbdcf
commit 97aa13a07d
2 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,13 @@ Execute:
./docker-volume-backup.sh
```
## Recover one volume
## Recover
```bash
docker exec -i mysql_container mysql -uroot -psecret database < db.sql
```
### Volume
Execute:
```bash
@ -25,6 +31,8 @@ bash ./docker-volume-recover.sh "{{volume_name}}" "$(sha256sum /etc/machine-id |
```
### Database
## Debug
To checkout what's going on in the mount container type in the following command:

View File

@ -3,7 +3,7 @@
# @param $2 Hash-Name
volume_name="$1"
backup_hash="$2"
backup_path="/Backups/$backup_hash/docker-volume-backup/latest/$volume_name/raw"
backup_path="/Backups/$backup_hash/docker-volume-backup/latest/$volume_name/files"
echo "Inspect volume $volume_name"
docker volume inspect "$volume_name"
exit_status_volume_inspect=$?