Wednesday, July 1, 2009

database backup

$command_exe = "mysqldump -u" . $db_user . " -p" . $pass. " --add-drop-table -c " . $database_name. " > " . getcwd() . "/path_to_database_dump/db_back.sql";
exec($command_exe);

No comments:

Post a Comment