diff options
author | intrigeri <intrigeri@boum.org> | 2010-06-14 19:06:59 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-06-14 19:06:59 +0200 |
commit | aeca6912a8f67ecf69ba9b8a436a2a695e5f3acc (patch) | |
tree | b227415a8a15cfd8a1c5b920cef0de0d5657a893 /handlers/mysql.in | |
parent | 211d6506cbde8091cb0d6574bb43515cf916166b (diff) | |
download | backupninja-aeca6912a8f67ecf69ba9b8a436a2a695e5f3acc.tar.gz backupninja-aeca6912a8f67ecf69ba9b8a436a2a695e5f3acc.tar.bz2 |
Added GZIP_OPTS option, defaulting to --rsyncable.
... so that this option can be disabled on systems that don't support it.
This also allows to use another compression program, such as pbzip2 on SMP
machines (closes Roundup bug #2405).
Diffstat (limited to 'handlers/mysql.in')
-rw-r--r-- | handlers/mysql.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/mysql.in b/handlers/mysql.in index 3488c51..4dece24 100644 --- a/handlers/mysql.in +++ b/handlers/mysql.in @@ -279,7 +279,7 @@ then fatal "mysqld doesn't appear to be running!" fi if [ "$compress" == "yes" ]; then - execstr="$VSERVER $vsname exec $DUMP | $GZIP --rsyncable > '$vroot$dumpdir/${db}.sql.gz'" + execstr="$VSERVER $vsname exec $DUMP | $GZIP $GZIP_OPTS > '$vroot$dumpdir/${db}.sql.gz'" else execstr="$VSERVER $vsname exec $DUMP -r '$vroot$dumpdir/${db}.sql'" fi @@ -290,7 +290,7 @@ then fatal "mysqld doesn't appear to be running!" fi if [ "$compress" == "yes" ]; then - execstr="$DUMP | $GZIP --rsyncable > '$dumpdir/${db}.sql.gz'" + execstr="$DUMP | $GZIP $GZIP_OPTS > '$dumpdir/${db}.sql.gz'" else execstr="$DUMP -r '$dumpdir/${db}.sql'" fi |