mkbak_media: Allow to append to current position

This commit is contained in:
Markus Koch 2022-03-24 12:14:16 +01:00
parent b8dbc622ea
commit 29115ff44e

View File

@ -45,8 +45,12 @@ info "Configuring tape drive"
mt-st -f $DEV compression 0 mt-st -f $DEV compression 0
if [ "$MODE" == "append" ]; then if [ "$MODE" == "append" ]; then
info "Moving tape to end..." info "Append to end of data? [ctrl+c to cancel]"
read a
mt-st -f $DEV eod mt-st -f $DEV eod
elif [ "$MODE" == "here" ]; then
info "Appending to tape at current position. This may overwrite existing data. Are you sure? [ctrl+c to cancel]"
read a
else else
warn "Rewinding tape. This will delete all existing data on tape. Are you sure? [ctrl+c to cancel]" warn "Rewinding tape. This will delete all existing data on tape. Are you sure? [ctrl+c to cancel]"
read a read a