projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ldap, mysql, pgsql: use gzip's --rsyncable option
[matthijs/upstream/backupninja.git]
/
handlers
/
mysql.in
diff --git
a/handlers/mysql.in
b/handlers/mysql.in
index 88ffb1a798fa8d9eec8e1d8587aa439fd4b5768c..e1e89b0a29ccff24d5c8b025f4ece10d0462a940 100644
(file)
--- a/
handlers/mysql.in
+++ b/
handlers/mysql.in
@@
-272,7
+272,7
@@
then
fatal "mysqld doesn't appear to be running!"
fi
if [ "$compress" == "yes" ]; then
fatal "mysqld doesn't appear to be running!"
fi
if [ "$compress" == "yes" ]; then
- execstr="$VSERVER $vsname exec $DUMP | $GZIP > $vroot$dumpdir/${db}.sql.gz"
+ execstr="$VSERVER $vsname exec $DUMP | $GZIP
--rsyncable
> $vroot$dumpdir/${db}.sql.gz"
else
execstr="$VSERVER $vsname exec $DUMP -r $vroot$dumpdir/${db}.sql"
fi
else
execstr="$VSERVER $vsname exec $DUMP -r $vroot$dumpdir/${db}.sql"
fi
@@
-283,7
+283,7
@@
then
fatal "mysqld doesn't appear to be running!"
fi
if [ "$compress" == "yes" ]; then
fatal "mysqld doesn't appear to be running!"
fi
if [ "$compress" == "yes" ]; then
- execstr="$DUMP | $GZIP > $dumpdir/${db}.sql.gz"
+ execstr="$DUMP | $GZIP
--rsyncable
> $dumpdir/${db}.sql.gz"
else
execstr="$DUMP -r $dumpdir/${db}.sql"
fi
else
execstr="$DUMP -r $dumpdir/${db}.sql"
fi