Mysql backup

#!/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

歷史上得今天..

Leave a Reply