#!/bin/bash



#1天前的日志移动到其它目录
find /www/_www/ysgame/log/ -type f -name '*.log' -mtime +0 -exec mv {} /datasdc/logs/ysgame/log/ \;
find /www/_www/ysaaa2/Application/Runtime/Logs/ -type f -name '*.log' -mtime +0 -exec mv {} /datasdc/logs/ysaaa2/log/ \;
#清理N天前ysgame 日志
#find /www/_www/ysgame/log/ -type f -name '*.log' -mtime +5 -exec rm {} \;
find /datasdc/logs/ysgame/log/ -type f -name '*.log' -mtime +5 -exec rm {} \;
find /datasdc/logs/ysaaa2/log/ -type f -name '*.log' -mtime +5 -exec rm {} \;
