mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 05:10:28 +01:00
check for correct file in tests
This commit is contained in:
parent
a91353742d
commit
d29d0d7399
@ -19,7 +19,7 @@ docker exec $(docker ps -q -f name=backup) backup
|
|||||||
|
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
-v test_stack_backup_data:/data alpine \
|
-v test_stack_backup_data:/data alpine \
|
||||||
ash -c 'tar -xf /data/backup/test.tar.gz && test -f /backup/pg_data/pg_stat/global.stat'
|
ash -c 'tar -xf /data/backup/test.tar.gz && test -f /backup/pg_data/pg_stat/PG_VERSION'
|
||||||
|
|
||||||
echo "[TEST:PASS] Found relevant files in untared backup."
|
echo "[TEST:PASS] Found relevant files in untared backup."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user