mysqldump

Simple usage of mysqldump:

mysqldump --user='user' --password='password' --skip-lock-tables db_name table_name | gzip -c > /home/hosting/table_name.sql.gz

Use --skip-lock-tables. Note that % should be \%.

ToDo

  1. Automate using Cron
  2. Copy to backup a cloud storage