Posted By

gdvickery on 08/31/10


Tagged

mysql mysqldump


Versions (?)

Export MySQL to file


 / Published in: Bash
 

Dumps the contents of a mysql database to a .sql file named by the current date.

  1. mysqldump -u[username] -p[password] [database_name] -h[myhost.com] > `date +"%Y_%m_%d"`.sql

Report this snippet  

You need to login to post a comment.