PDA

View Full Version : MySQL Dump Task


Markro
02-26-2007, 09:51 PM
I have an old script I've been using for sometime, but it isn't working anymore, can someone help me?


<?php

shell_exec('mysqldump -uUSERNAME -pPASSWORD DATABASE > /public_html/backups/backup.sql');

rename(dirname(__FILE__).'/', dirname(dirname(__FILE__)).'/Dump'.date('Ymd').'.sql');

?>

Dismounted
02-27-2007, 04:32 AM
Usually, shell_exec is disabled.

Marco van Herwaarden
02-27-2007, 08:50 AM
Do you get any error messages?