/ Published in: Bash
Dumps the contents of a mysql database to a .sql file named by the current date.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
mysqldump -u[username] -p[password] [database_name] -h[myhost.com] > `date +"%Y_%m_%d"`.sql