标签:111
#!/bin/bash
PASSWORD=ks4QrUhgmH6XZvE1hY1Q
/usr/local/mysql/bin/mysqldump -uroot -p$PASSWORD \
--master-data=2 --all-databases | gzip > /backup/db_`date +%Y%m%d%H%M`.sql.gz
find /backup/ -ctime +10 -exec rm -f {} \;
标签:111
原文地址:http://8934920.blog.51cto.com/8924920/1964635