Added in-line compression to pgsql and mysql handlers, appears to work fine in tests
[matthijs/upstream/backupninja.git] / handlers / rdiff
index 8f0edfb558ffd6ef4bbe24caf8acc210629c11ae..8faca9d654a827b7d447c48736c1ef1515e7b302 100644 (file)
@@ -155,7 +155,7 @@ fi
 removestr="${removestr}${destdir}/${label}";
 
 debug "$removestr"
-if [ ! $test ]; then
+if [ $test = 0 ]; then
        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
-      warning "exclude statement ${i//__star__/*} will be ignored. $symlinks_warning"
+      warning "exclude statement '${i//__star__/*}' will be ignored. $symlinks_warning"
    fi
 done
 # includes 
@@ -193,7 +193,7 @@ for i in $include; do
    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
 
@@ -206,7 +206,7 @@ if [ $usevserver = yes ]; then
          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
@@ -221,7 +221,7 @@ execstr="${execstr}--exclude '/*' "
 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