mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
17 lines
260 B
Bash
17 lines
260 B
Bash
|
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
|