From 29115ff44e7e6b0f7eebdb1b470cc8898c7e6363 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Thu, 24 Mar 2022 12:14:16 +0100 Subject: [PATCH] mkbak_media: Allow to append to current position --- mkbak_media.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mkbak_media.sh b/mkbak_media.sh index 4192a0f..96e2763 100755 --- a/mkbak_media.sh +++ b/mkbak_media.sh @@ -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