Recent Changes - Search:

Softwares

.

BashScriptAndMysqldumpCommandToBackupMysqlDatabases

Main.BashScriptAndMysqldumpCommandToBackupMysqlDatabases History

Hide minor edits - Show changes to output

July 23, 2007, at 11:53 AM by 210.18.59.46 -
Changed lines 3-9 from:
#!/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
to:
#!/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
July 23, 2007, at 11:53 AM by 210.18.59.46 -
Added lines 1-9:
*%red%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