mysqlbackup.sh 178 B

12
  1. mysqldump -uroot -p@_c8B3h7S4. langfang | gzip > /var/mysqlbackup/langfang/`date '+%Y-%m-%d'`.sql.gz
  2. find /var/mysqlbackup/langfang -atime +15 -name "*.sql.gz" -exec rm -rf {} \;