diff --git a/testsuite/test-backup-dedup.sh b/testsuite/test-backup-dedup.sh deleted file mode 100755 index a3f2e7a4d..000000000 --- a/testsuite/test-backup-dedup.sh +++ /dev/null @@ -1,23 +0,0 @@ -set -e - -prepare -run restic init - -# first backup without dedup -run restic backup "${BASE}/fake-data" -size=$(du -sm "$RESTIC_REPOSITORY" | cut -f1) -debug "size before: $size" - -# second backup with dedup -run restic backup "${BASE}/fake-data" -size2=$(du -sm "$RESTIC_REPOSITORY" | cut -f1) -debug "size after: $size2" - -# check if the repository hasn't grown more than 5% -threshhold=$(($size+$size/20)) -debug "threshhold is $threshhold" -if [[ "$size2" -gt "$threshhold" ]]; then - fail "dedup failed, repo grown more than 5%, before ${size}MiB after ${size2}MiB threshhold ${threshhold}MiB" -fi - -cleanup diff --git a/testsuite/test-backup-incremental.sh b/testsuite/test-backup-incremental.sh deleted file mode 100755 index 0a9ca3ec5..000000000 --- a/testsuite/test-backup-incremental.sh +++ /dev/null @@ -1,28 +0,0 @@ -set -e - -prepare -run restic init - -# create testfile -echo "testfile" > ${BASE}/fake-data/file - -# run first backup -run restic backup "${BASE}/fake-data" - -# remember snapshot id -SNAPSHOT=$(run restic list snapshots) - -# add data to testfile -date >> ${BASE}/fake-data/file - -# run backup again -run restic backup "${BASE}/fake-data" - -# add data to testfile -date >> ${BASE}/fake-data/file - -# run incremental backup -run restic backup -p "$SNAPSHOT" "${BASE}/fake-data" - -run restic fsck -o --check-data -cleanup diff --git a/testsuite/test-backup.sh b/testsuite/test-backup.sh deleted file mode 100755 index 4c3803d2c..000000000 --- a/testsuite/test-backup.sh +++ /dev/null @@ -1,18 +0,0 @@ -set -e - -prepare -run restic init -run restic backup "${BASE}/fake-data" -run restic restore "$(basename "$RESTIC_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore" -dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore/fake-data" - -SNAPSHOT=$(restic list snapshots) -run restic backup -p "$SNAPSHOT" "${BASE}/fake-data" -run restic restore "$(basename "$RESTIC_REPOSITORY"/snapshots/*)" "${BASE}/fake-data-restore-incremental" -dirdiff "${BASE}/fake-data" "${BASE}/fake-data-restore-incremental/fake-data" - -echo "snapshot id is $SNAPSHOT" -restic ls "$SNAPSHOT" fake-data/0/0/1 | head -n 10 - -run restic fsck -o --check-data -cleanup