打包多天前的日志
比如
date=`date +%Y-%m-%d`
cd /cluster/data/log/history
find /cluster/data/log/flume -type f -mtime +230 | xargs tar -czvf ${date}_FlumeLog.tar.gz –remove-files
打包多天前的日志
比如
date=`date +%Y-%m-%d`
cd /cluster/data/log/history
find /cluster/data/log/flume -type f -mtime +230 | xargs tar -czvf ${date}_FlumeLog.tar.gz –remove-files
发表评论