#!/bin/sh location="/data/backup/mysql/" #备份目录(7天以前) find $location -type f -name \*.sql -mtime +7 -exec rm {} \;
shell脚本 删除过期sql备份
最新推荐文章于 2022-06-25 16:13:19 发布
#!/bin/sh location="/data/backup/mysql/" #备份目录(7天以前) find $location -type f -name \*.sql -mtime +7 -exec rm {} \;