run cli test using BACKUP_FROM_SNAPSHOT

This commit is contained in:
Frederik Ring 2021-11-08 08:44:59 +01:00
parent 411c39ee72
commit 3c06bf8102
2 changed files with 6 additions and 6 deletions

View File

@ -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"

View File

@ -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