projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added rsnap
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
rdiff
diff --git
a/handlers/rdiff
b/handlers/rdiff
index 8f0edfb558ffd6ef4bbe24caf8acc210629c11ae..8faca9d654a827b7d447c48736c1ef1515e7b302 100644
(file)
--- a/
handlers/rdiff
+++ b/
handlers/rdiff
@@
-155,7
+155,7
@@
fi
removestr="${removestr}${destdir}/${label}";
debug "$removestr"
removestr="${removestr}${destdir}/${label}";
debug "$removestr"
-if [
! $test
]; then
+if [
$test = 0
]; then
output=`$removestr 2>&1`
if [ $? = 0 ]; then
debug $output
output=`$removestr 2>&1`
if [ $? = 0 ]; then
debug $output
@@
-182,7
+182,7
@@
for i in $exclude; do
if [ -n "$str" ]; then
execstr="${execstr}--exclude '$str' "
else
if [ -n "$str" ]; then
execstr="${execstr}--exclude '$str' "
else
- warning "exclude statement
${i//__star__/*}
will be ignored. $symlinks_warning"
+ warning "exclude statement
'${i//__star__/*}'
will be ignored. $symlinks_warning"
fi
done
# includes
fi
done
# includes
@@
-193,7
+193,7
@@
for i in $include; do
if [ -n "$str" ]; then
execstr="${execstr}--include '$str' "
else
if [ -n "$str" ]; then
execstr="${execstr}--include '$str' "
else
- warning "include statement
${i//__star__/*}
will be ignored. $symlinks_warning"
+ warning "include statement
'${i//__star__/*}'
will be ignored. $symlinks_warning"
fi
done
fi
done
@@
-206,7
+206,7
@@
if [ $usevserver = yes ]; then
if [ -n "$str" ]; then
execstr="${execstr}--include '$str' "
else
if [ -n "$str" ]; then
execstr="${execstr}--include '$str' "
else
- warning "vsinclude statement
${vi//__star__/*}
will be ignored for VServer $vserver. $symlinks_warning"
+ warning "vsinclude statement
'${vi//__star__/*}'
will be ignored for VServer $vserver. $symlinks_warning"
fi
done
done
fi
done
done
@@
-221,7
+221,7
@@
execstr="${execstr}--exclude '/*' "
execstr="${execstr}$execstr_sourcepart $execstr_destpart"
debug "$execstr"
execstr="${execstr}$execstr_sourcepart $execstr_destpart"
debug "$execstr"
-if [
! $test
]; then
+if [
$test = 0
]; then
output=`nice -n $nicelevel su -c "$execstr" 2>&1`
if [ $? = 0 ]; then
debug $output
output=`nice -n $nicelevel su -c "$execstr" 2>&1`
if [ $? = 0 ]; then
debug $output