fixed bugs
This commit is contained in:
parent
bfdadaea4b
commit
70204c7bf1
3 changed files with 6 additions and 10 deletions
12
src/backbit
12
src/backbit
|
@ -20,18 +20,14 @@ then
|
||||||
. $confDir/before.sh
|
. $confDir/before.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for $conf in $(ls $confDir/db/*)
|
for conf in $(ls $confDir/db/*)
|
||||||
do
|
do
|
||||||
( source $conf
|
( source $conf; $(which backbitdb) $conf >> $logDir/$dbName.log )
|
||||||
$(which backbitdb) > $logDir/$dbName.log
|
|
||||||
)
|
|
||||||
done
|
done
|
||||||
|
|
||||||
for $conf in $(ls $confDir/dir/*)
|
for conf in $(ls $confDir/dir/*)
|
||||||
do
|
do
|
||||||
( source $conf
|
( source $conf; $(which backbitdir) $conf >> $logDir/$name.log )
|
||||||
$(which backbitdir) > $logDir/$name.log
|
|
||||||
)
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -x $confDir/after.sh ]
|
if [ -x $confDir/after.sh ]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Backup a sql database, args come from the environment
|
# Backup a sql database, args come from the environment
|
||||||
# $1, if it exists, contains a list of declarations
|
# $1, if it exists, contains a list of declarations
|
||||||
|
|
||||||
if [ -e $1 ]; then
|
if [ -e "$1" ]; then
|
||||||
source $1
|
source $1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Backup a directory, args come from the environment
|
# Backup a directory, args come from the environment
|
||||||
# $1, if it exists, contains a list of declarations
|
# $1, if it exists, contains a list of declarations
|
||||||
|
|
||||||
if [ -e $1 ]; then
|
if [ -e "$1" ]; then
|
||||||
source $1
|
source $1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue