Mysql backup
Posted in MySQL on April 13th, 2005 by site admin#!/bin/bash
/etc/rc.d/init.d/mysqld stop
tar -zcvf /backup/mysqld-`date +%Y-%m+%d`.tar.gz /var/lib/mysql
/etc/rc.d/init.d/mysqld start
#!/bin/bash
/etc/rc.d/init.d/mysqld stop
tar -zcvf /backup/mysqld-`date +%Y-%m+%d`.tar.gz /var/lib/mysql
/etc/rc.d/init.d/mysqld start