Page 1 of 1

CSV format?

Posted: Tue Oct 23, 2007 5:39 pm
by Josh
It looks like the ability to back up a MySQL database in CSV format is an option, but I can't seem to figure out how to change this.

I can manually back up a database in CSV (or any other format). The AutoBackup always attaches a sql gzipped format though.

How would you change the script to e-mail a .CSV gzipped file instead.

Very nice app by the way. It even works for those of us who aren't that technically inclined.


Posted: Tue Oct 23, 2007 5:52 pm
by davidgwalker
Hi Josh,

Yes, edit the file:

line 302, change from:

$cfg['Export']['format'] = 'sql';

$cfg['Export']['format'] = 'csv';

Hope that helps

nb. but note this feature may not be included in the new version -- unless someone wants to voluntee to code it in following the release...?

Posted: Tue Oct 23, 2007 6:22 pm
by Josh
Thanks for the extremely fast response. I think that's just what I need.

Posted: Tue Oct 23, 2007 6:32 pm
by davidgwalker
Well... you know what they say:

"You pay for what you get!"

:shock: Wait a minutre, you have not paid anything....

Enjoy :)

Posted: Tue Oct 23, 2007 6:33 pm
by Josh
Just made that change. Still being e-mailed a gzipped SQL file.

Posted: Tue Oct 23, 2007 6:49 pm
by davidgwalker
Indeed, thats because it is over-ridden by the later assignment in file:

Change this:
$what = "sql";

$what = "csv";

That should do it ;-)