From 37ebbc4736095a3c66e5d885494436988742bca5 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Wed, 30 Aug 2017 23:07:00 -0400 Subject: [PATCH] Add a test for copying snapshots between storages --- integration_tests/copy_test.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 integration_tests/copy_test.sh diff --git a/integration_tests/copy_test.sh b/integration_tests/copy_test.sh new file mode 100755 index 0000000..329a95c --- /dev/null +++ b/integration_tests/copy_test.sh @@ -0,0 +1,21 @@ +#!/bin/bash + + +. ./test_functions.sh + +fixture + +pushd ${TEST_REPO} +${DUPLICACY} init integration-tests $TEST_STORAGE -c 1k +${DUPLICACY} add -copy default secondary integration-tests $SECONDARY_STORAGE +add_file file1 +add_file file2 +${DUPLICACY} backup +${DUPLICACY} copy -from default -to secondary +add_file file3 +add_file file4 +${DUPLICACY} backup +${DUPLICACY} copy -from default -to secondary +${DUPLICACY} check --files -stats +${DUPLICACY} check --files -stats -storage secondary +popd