shell脚本 删除过时sql备份

#!/bin/sh location="/data/backup/mysql/" #备份目录(7天之前) find $location -type f -name \*.sql -mtime +7 -exec rm {} \;
相关文章
相关标签/搜索