Monthly Archives: January 2013

Shell command for dump mysql database

shell_exec("mysqldump --opt --user=database_user_name --password=database_password --host=hostname database_name > path/$(date '+%m%d%Y-%H%M')__database_name_to_save.sql");
%d bloggers like this: