mysqlbackup.sh 172 B

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