将当前目录下过去30天的目录移动指定目录下
find . -mindepth 1 -type d -mtime +30 | xargs -i mv {} /home/bu/date_30/
1.当前时间24小时—当前时间(昨天-今天)
find . -mtime 0
2.当前时间48小时前–当前时间24小时前(前天-昨天)
find . -mtime 1
4.计算目录大小
du -sh date_90
大小一般控制在10-15G最好
5.压缩并打包
tar -czf date_90.tar.gz date_90/
删除过去100天的目录
find . -type d -ctime +100 | xargs rm -rf