From 9d6b95e7a6e688eee4f6aa74efc779d0d848fa39 Mon Sep 17 00:00:00 2001 From: deajan Date: Fri, 23 Dec 2016 21:51:34 +0100 Subject: [PATCH] Added --no-prefix option --- dev/n_obackup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 7b00d7b..ae1db8e 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash -#TODO(low): add --no-prefix switch #TODO: missing files says Backup succeed #TODO: ListingDatabases fail succeed #TODO: Add .gpg extesion to RotateFiles ? @@ -1594,6 +1593,7 @@ function Usage { echo "" echo "OPTIONS:" echo "--dry will run obackup without actually doing anything, just testing" + echo "--no-prefix Will suppress time / date suffix from output" echo "--silent will run obackup without any output to stdout, usefull for cron backups" echo "--errors-only Output only errors (can be combined with silent or verbose)" echo "--verbose adds command outputs" @@ -1679,6 +1679,9 @@ function GetCommandlineArguments { --errors-only) _LOGGER_ERR_ONLY=true ;; + --no-prefix) + _LOGGER_PREFIX="" + ;; esac done }