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
1 changed files with 5 additions and 1 deletions

View File

@ -45,8 +45,12 @@ info "Configuring tape drive"
mt-st -f $DEV compression 0
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
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
warn "Rewinding tape. This will delete all existing data on tape. Are you sure? [ctrl+c to cancel]"
read a