backup mysql databases


/ Published in: Other
Save to your folder(s)

MySQL backup and restore example through mysqldump / mysql command line utilities.


Copy this code and paste it in your HTML
  1. # Backup:
  2. mysqldump -u<usr> -p<pwd> <db> | gzip > <file>
  3.  
  4. # Restore:
  5. gunzip <file> | mysql -u<usr> -p<pwd> <db>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.