mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-25 01:31:03 +01:00
Updated recovery
This commit is contained in:
parent
7cee6cbdcf
commit
97aa13a07d
10
README.md
10
README.md
@ -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:
|
||||
|
||||
|
@ -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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user