projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mysql, pgsql: Quote output filenames
[matthijs/upstream/backupninja.git]
/
handlers
/
mysql.in
diff --git
a/handlers/mysql.in
b/handlers/mysql.in
index a4a3667ffff87058640caca4767a728f8d9b66ea..0aa3abbc9f4c5fb2d926d9f7ef41d5d6db8cdf6f 100644
(file)
--- a/
handlers/mysql.in
+++ b/
handlers/mysql.in
@@
-1,4
+1,5
@@
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
# -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
+# vim: set filetype=sh sw=3 sts=3 expandtab autoindent:
#
# mysql handler script for backupninja
#
#
# mysql handler script for backupninja
#
@@
-271,9
+272,9
@@
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
else
- execstr="$VSERVER $vsname exec $DUMP -r
$vroot$dumpdir/${db}.sql
"
+ execstr="$VSERVER $vsname exec $DUMP -r
'$vroot$dumpdir/${db}.sql'
"
fi
else
# Test to make sure mysqld is running, if it is not sqldump will not work
fi
else
# Test to make sure mysqld is running, if it is not sqldump will not work
@@
-282,9
+283,9
@@
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
else
- execstr="$DUMP -r
$dumpdir/${db}.sql
"
+ execstr="$DUMP -r
'$dumpdir/${db}.sql'
"
fi
fi
debug "su $user -c \"$execstr\""
fi
fi
debug "su $user -c \"$execstr\""