MySQL-backups send out percent messages ;D
Posted: Mon Aug 11, 2008 2:58 am
I've been trying to create a MySQL-backup script which I could run using cron and get daily backups to my email. Everything is working perfectly, but when I run this using cron, it sends out percent values. At first I though it was gzip, and added the switch -q into gzip command to make it quiet, but no, it's not that. Could comeone tell how to disable these messages so cron would not send me emails about percents?
Code:
That's the main part of my script. I use phpMailer to send out the mails.
Code:
Code: Select all
$command = 'mysqldump --opt -u ' . $databases[$key]['dbuser'] . ' -p' . $databases[$key]['dbpass'] .
' ' . $databases[$key]['dbname'] . ' | gzip -q -v -9 > ' . $filename;
system($command);