restic/testsuite/test-backup-missing-file.sh
2015-01-17 16:32:24 +01:00

16 lines
260 B
Bash
Executable file

set -em
# setup restic
prepare
run restic init
# start backup, break before saving files
DEBUG_BREAK=Archiver.Snapshot run restic.debug backup "${BASE}/fake-data" && debug "done"
# remove file
rm -f "${BASE}/fake-data/0/0/9/37"
# resume backup
fg
cleanup