mirror of
https://github.com/ViViDboarder/docker-restic-cron.git
synced 2024-11-15 01:36:37 +00:00
23 lines
314 B
Bash
23 lines
314 B
Bash
|
#! /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
|