Added verbosity
This commit is contained in:
parent
3bb1987dcb
commit
a0f9cfd95e
1 changed files with 10 additions and 0 deletions
10
ccollect.sh
10
ccollect.sh
|
@ -42,6 +42,7 @@ usage()
|
||||||
echo " -h, --help: Show this help screen"
|
echo " -h, --help: Show this help screen"
|
||||||
echo " -p, --parallel: Parellize backup process"
|
echo " -p, --parallel: Parellize backup process"
|
||||||
echo " -a, --all: Backup all sources specified in $CSOURCES"
|
echo " -a, --all: Backup all sources specified in $CSOURCES"
|
||||||
|
echo " -v, --verbose: Be very verbose."
|
||||||
echo ""
|
echo ""
|
||||||
echo " Retrieve latest ccollect at http://linux.schottelius.org/ccollect/."
|
echo " Retrieve latest ccollect at http://linux.schottelius.org/ccollect/."
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -83,6 +84,9 @@ while [ $i -le $# ]; do
|
||||||
-a|--all)
|
-a|--all)
|
||||||
ALL=1
|
ALL=1
|
||||||
;;
|
;;
|
||||||
|
-v|--verbose)
|
||||||
|
VERBOSE=1
|
||||||
|
;;
|
||||||
-p|--parallel)
|
-p|--parallel)
|
||||||
PARALLEL=1
|
PARALLEL=1
|
||||||
;;
|
;;
|
||||||
|
@ -102,6 +106,12 @@ while [ $i -le $# ]; do
|
||||||
i=$[$i+1]
|
i=$[$i+1]
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#
|
||||||
|
# be really really really verbose
|
||||||
|
#
|
||||||
|
if [ "$VERBOSE" = 1 ]; then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Look, if we should take ALL sources
|
# Look, if we should take ALL sources
|
||||||
|
|
Loading…
Reference in a new issue