From 3c06bf81029bcfe09eb54dd984c47ef7244b28b2 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Mon, 8 Nov 2021 08:44:59 +0100 Subject: [PATCH] run cli test using BACKUP_FROM_SNAPSHOT --- README.md | 8 ++++---- test/cli/run.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1c9c019..b9fbad0 100644 --- a/README.md +++ b/README.md @@ -126,10 +126,10 @@ You can populate below template according to your requirements and use it as you # BACKUP_LATEST_SYMLINK="backup.latest.tar.gz" -# Wehter to copy the content of backup folder before creating archive. -# In rare scenario where the content of the source backup volume is still -# updating, but we do not wish to stop the container while performing backup, -# this snapshot before archive ensures the integrity of the tar.gz file. +# Whether to copy the content of backup folder before creating the tar archive. +# In the rare scenario where the content of the source backup volume is continously +# updating, but we do not wish to stop the container while performing the backup, +# this setting can be used to ensure the integrity of the tar.gz file. # BACKUP_FROM_SNAPSHOT="false" diff --git a/test/cli/run.sh b/test/cli/run.sh index 993c773..bcf2a5d 100755 --- a/test/cli/run.sh +++ b/test/cli/run.sh @@ -23,7 +23,6 @@ docker exec minio mkdir -p /data/backup docker run -d \ --name offen \ --network test_network \ - --label "docker-volume-backup.stop-during-backup=true" \ -v app_data:/var/opt/offen/ \ offen/offen:latest @@ -39,6 +38,7 @@ docker run --rm \ --env AWS_ENDPOINT_PROTO=http \ --env AWS_S3_BUCKET_NAME=backup \ --env BACKUP_FILENAME=test.tar.gz \ + --env "BACKUP_FROM_SNAPSHOT=true" \ --entrypoint backup \ offen/docker-volume-backup:$TEST_VERSION @@ -56,6 +56,6 @@ fi echo "[TEST:PASS] All containers running post backup." -docker rm $(docker stop minio offen backup) +docker rm $(docker stop minio offen) docker volume rm backup_data app_data docker network rm test_network