删除linux上7天前后缀名.sql的文件

#!/bin/bash
#delete the file of 7 days ago
find /data/mysqlbackup/ -mtime +7 -name "*.sql" -exec rm -f {} \;

posted @ 2017-11-27 10:21  梦轻尘  阅读(292)  评论(0编辑  收藏  举报