mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 23:23:53 +01:00
Added --errors-only switch
This commit is contained in:
parent
709af82ff4
commit
03f93d2576
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user