mirror of
https://github.com/octoleo/restic.git
synced 2024-11-29 16:23:59 +00:00
17 lines
293 B
Bash
17 lines
293 B
Bash
|
set -em
|
||
|
|
||
|
# setup restic
|
||
|
prepare
|
||
|
run restic init
|
||
|
|
||
|
# start backup, break between walk and save
|
||
|
DEBUG_BREAK=pipe.walk2 DEBUG_BREAK_PIPE="fake-data/0/0/9/37" run restic.debug backup "${BASE}/fake-data" && debug "done"
|
||
|
|
||
|
# remove file
|
||
|
rm -f "${BASE}/fake-data/0/0/9/37"
|
||
|
|
||
|
# resume backup
|
||
|
fg
|
||
|
|
||
|
cleanup
|