打包多天前的日志
比如 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
If you enjoyed this article please consider sharing it!
邮箱地址不会被公开。 必填项已用*标注
评论
名称 *
电子邮件 *
站点