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 in-line compression to pgsql and mysql handlers, appears to work fine in tests
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
rdiff
diff --git
a/handlers/rdiff
b/handlers/rdiff
index 88aeaf3fc7b130ac5ee5e437f7c001a58ef216f5..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
@@
-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