Added first intervall description, added more fine configuration
This commit is contained in:
parent
64a81656c3
commit
3d957a1c86
2 changed files with 47 additions and 11 deletions
11
README
11
README
|
@ -1,3 +1,6 @@
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
ccollect.sh, Nico Schottelius, 2005-12-06
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
$CCOLLECT_CONF/
|
$CCOLLECT_CONF/
|
||||||
-> Directories, which are so called 'backup-definitions'
|
-> Directories, which are so called 'backup-definitions'
|
||||||
|
|
||||||
|
@ -6,3 +9,11 @@ $CCOLLECT_CONF/
|
||||||
destination -> link to the destination
|
destination -> link to the destination
|
||||||
exclude -> \n seperated
|
exclude -> \n seperated
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
intervalls/ - subdirectory of source or defaults
|
||||||
|
|
||||||
|
Each file below this directory describe an intervalls.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
45
ccollect.sh
45
ccollect.sh
|
@ -5,8 +5,17 @@
|
||||||
# Last Modified:
|
# Last Modified:
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# temporary as long as inofficial
|
||||||
|
#
|
||||||
CCOLLECT_CONF=$HOME/crsnapshot/conf
|
CCOLLECT_CONF=$HOME/crsnapshot/conf
|
||||||
|
|
||||||
|
#
|
||||||
|
# where to find our configuration
|
||||||
|
#
|
||||||
CCOLLECT_CONF=${CCOLLECT_CONF:-/etc/ccollect}
|
CCOLLECT_CONF=${CCOLLECT_CONF:-/etc/ccollect}
|
||||||
|
CSOURCES=$CCOLLECT_CONF/sources/
|
||||||
|
CDEFAULTS=$CCOLLECT_CONF/defaults/
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tell how to use us
|
# Tell how to use us
|
||||||
|
@ -36,22 +45,38 @@ no_shares=0
|
||||||
while [ $i -le $# ]; do
|
while [ $i -le $# ]; do
|
||||||
eval arg=\$$i
|
eval arg=\$$i
|
||||||
|
|
||||||
case $arg in
|
if [ "$NO_MORE_ARGS" = 1 ]; then
|
||||||
-h|--help)
|
|
||||||
usage
|
|
||||||
;;
|
|
||||||
--)
|
|
||||||
break
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
eval share_${no_shares}="$arg"
|
eval share_${no_shares}="$arg"
|
||||||
no_shares=$((no_shares+1))
|
no_shares=$((no_shares+1))
|
||||||
;;
|
else
|
||||||
esac
|
case $arg in
|
||||||
|
-a|--all)
|
||||||
|
ALL=1
|
||||||
|
;;
|
||||||
|
-p|--parallel)
|
||||||
|
PARALLEL=1
|
||||||
|
;;
|
||||||
|
-v|--verbose)
|
||||||
|
VERBOSE=1
|
||||||
|
;;
|
||||||
|
-h|--help)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
--)
|
||||||
|
NO_MORE_ARGS=1
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
eval share_${no_shares}="$arg"
|
||||||
|
no_shares=$((no_shares+1))
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
if [ -z "$(ls $CCOLLECT_CONF 2>/dev/null)" ]; then
|
if [ -z "$(ls $CCOLLECT_CONF 2>/dev/null)" ]; then
|
||||||
|
|
Loading…
Reference in a new issue