From 03f93d257663f4868c27433c6f9c1f2a2a76a294 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 14 Nov 2016 17:17:29 +0100 Subject: [PATCH] Added --errors-only switch --- dev/n_obackup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 7067e09..52359f5 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -9,7 +9,7 @@ PROGRAM="obackup" AUTHOR="(C) 2013-2016 by Orsiris de Jong" CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr" PROGRAM_VERSION=2.1-dev -PROGRAM_BUILD=2016111201 +PROGRAM_BUILD=2016111401 IS_STABLE=no source "./ofunctions.sh" @@ -1576,6 +1576,7 @@ function Usage { echo "OPTIONS:" echo "--dry will run obackup without actually doing anything, just testing" 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" echo "--stats Adds rsync transfer statistics to verbose output" echo "--partial Allows rsync to keep partial downloads that can be resumed later (experimental)" @@ -1657,6 +1658,10 @@ function GetCommandlineArguments { --recipient=*) GPG_RECIPIENT="${i##*=}" ;; + --only-errors) + _LOGGER_STDERR=True + _LOGGER_ERR_ONLY=True + ;; esac done }