mirror of
https://github.com/offen/docker-volume-backup.git
synced 2025-09-12 17:34:40 +08:00
assert that all containers are back up and running after backup
This commit is contained in:
parent
88d4326e61
commit
44d65c1a67
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ docker run --rm -it \
|
|||
-v default_backup_data:/data alpine \
|
||||
ash -c 'tar -xf /data/backup/test.tar.gz && test -f /backup/app_data/offen.db'
|
||||
|
||||
if [ "$(docker-compose ps -q | wc -l)" != "3" ]; then
|
||||
echo "Expected all containers to be running post backup, instead seen:"
|
||||
docker-compose ps
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker-compose down --volumes
|
||||
|
||||
echo "Test passed"
|
||||
|
|
Loading…
Add table
Reference in a new issue