image.png

    1. [root@iZj6c7hmt39ntpj3jmzsgmZ backup]# crontab -l
    2. #MySQL backup file
    3. Data_path=/server/backup
    4. 0 0 */6 * * /bin/find $Data_path -type f -mtime +7 |xargs rm -rf {}\; #每隔6天执行一次,并删除7天前的备份