Recent Changes - Search:

Softwares

.

BashScriptAndMysqldumpCommandToBackupMysqlDatabases

  • Bash script to backup mysql db's
  #!/bin/sh
  mysqldump -uroot -ppwd --opt database_a > /backup/db_a.sql
  mysqldump -uroot -ppwd --opt database_b > /backup/db_b.sql

  cd /backup

  tar -cvzf mysql_db_backup.tar.gz  *.sql
Edit - History - Print - Recent Changes - Search
Page last modified on July 23, 2007, at 11:53 AM