mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-12-23 17:30:20 +01:00
f97ce11734
* Add "none" compression type * Add "none" compression to docs * Use passThroughWriteCloser for "none" compression * Add test for none compression --------- Co-authored-by: Frederik Ring <frederik.ring@gmail.com>
26 lines
446 B
Bash
Executable File
26 lines
446 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
. ../util.sh
|
|
current_test=$(basename $(pwd))
|
|
|
|
export LOCAL_DIR=$(mktemp -d)
|
|
|
|
docker compose up -d --quiet-pull
|
|
sleep 5
|
|
|
|
docker compose exec backup backup
|
|
|
|
sleep 5
|
|
|
|
expect_running_containers "2"
|
|
|
|
tmp_dir=$(mktemp -d)
|
|
tar -xvf "$LOCAL_DIR/test.tar" -C $tmp_dir
|
|
if [ ! -f "$tmp_dir/backup/app_data/offen.db" ]; then
|
|
fail "Could not find expected file in untared archive."
|
|
fi
|
|
pass "Expected file was found."
|