summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0b59fb3)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@328
758a04ac-41e6-0310-8a23-
8373a73cc35d
. code formatting cleanup (three spaces indent)
. fixed bug which caused only first include/exclude dir to
have "include = "
. code formatting cleanup (three spaces indent)
. fixed bug which caused only first include/exclude dir to
have "include = "
- . fixed globbing bug with exclude
+ . fixed globbing bug with include and exclude (twice ;)
ninjahelper:
. now reports error if the helper script has a syntax error or bombs out.
. code formatting cleanup (three spaces indent)
ninjahelper:
. now reports error if the helper script has a syntax error or bombs out.
. code formatting cleanup (three spaces indent)
# See if vservers are configured
local usevserver=no
# See if vservers are configured
local usevserver=no
-if [ $vservers_are_available = yes ]; then
+if [ $vservers_are_available = yes -a -n "$vsinclude" ]; then
info "vserver method enabled"
usevserver=yes
fi
info "vserver method enabled"
usevserver=yes
fi
# TODO: order the includes and excludes
# excludes
# TODO: order the includes and excludes
# excludes
str="${i//__star__/*}"
execstr="${execstr}--exclude '$str' "
done
# includes
str="${i//__star__/*}"
execstr="${execstr}--exclude '$str' "
done
# includes
[ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
str="${i//__star__/*}"
execstr="${execstr}--include '$str' "
[ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
str="${i//__star__/*}"
execstr="${execstr}--include '$str' "
# vsinclude
if [ $usevserver = yes ]; then
for vserver in `ls $VROOTDIR|grep -v lost+found`; do
# vsinclude
if [ $usevserver = yes ]; then
for vserver in `ls $VROOTDIR|grep -v lost+found`; do
- for vi in $vsinclude; do
+ for vi in "$vsinclude"; do
str="${vi//__star__/*}"
execstr="${execstr}--include '$VROOTDIR/$vserver$str' "
done
str="${vi//__star__/*}"
execstr="${execstr}--include '$VROOTDIR/$vserver$str' "
done