mirror of
https://github.com/ViViDboarder/docker-duplicity-cron.git
synced 2024-11-14 07:06:30 +00:00
29 lines
477 B
Bash
Executable File
29 lines
477 B
Bash
Executable File
#! /bin/bash
|
|
set -e
|
|
|
|
echo "Performing backup tests"
|
|
|
|
echo "Create test data..."
|
|
mkdir -p /data && echo Test > /data/test.txt
|
|
|
|
echo "Making backup..."
|
|
/backup.sh
|
|
|
|
echo "Verify backup..."
|
|
/verify.sh
|
|
|
|
echo "Delete test data..."
|
|
rm -fr /data/*
|
|
|
|
echo "Restore backup..."
|
|
/restore.sh
|
|
|
|
echo "Verify backup..."
|
|
/verify.sh
|
|
|
|
echo "Verify incorrect passphrase fails..."
|
|
export PASSPHRASE=Incorrect.Mule.Solar.Paperclip
|
|
|
|
echo "Fail to restore backup..."
|
|
/restore.sh && exit 1 || echo "OK"
|