Added --errors-only switch

This commit is contained in:
deajan 2016-11-14 17:17:29 +01:00
parent 709af82ff4
commit 03f93d2576
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ PROGRAM="obackup"
AUTHOR="(C) 2013-2016 by Orsiris de Jong" AUTHOR="(C) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr" CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
PROGRAM_VERSION=2.1-dev PROGRAM_VERSION=2.1-dev
PROGRAM_BUILD=2016111201 PROGRAM_BUILD=2016111401
IS_STABLE=no IS_STABLE=no
source "./ofunctions.sh" source "./ofunctions.sh"
@ -1576,6 +1576,7 @@ function Usage {
echo "OPTIONS:" echo "OPTIONS:"
echo "--dry will run obackup without actually doing anything, just testing" 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 "--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 "--verbose adds command outputs"
echo "--stats Adds rsync transfer statistics to verbose output" echo "--stats Adds rsync transfer statistics to verbose output"
echo "--partial Allows rsync to keep partial downloads that can be resumed later (experimental)" echo "--partial Allows rsync to keep partial downloads that can be resumed later (experimental)"
@ -1657,6 +1658,10 @@ function GetCommandlineArguments {
--recipient=*) --recipient=*)
GPG_RECIPIENT="${i##*=}" GPG_RECIPIENT="${i##*=}"
;; ;;
--only-errors)
_LOGGER_STDERR=True
_LOGGER_ERR_ONLY=True
;;
esac esac
done done
} }