同步nginx日志到s3 bulket

1.此处用的是增量同步nginx

#!/bin/bashbash

rm -rf /var/log/nginx/access.log.*.*同步

local_host="`hostname --i`"date

aws s3 sync /var/log/nginx/ s3://cjtt-nginx/access/`date +%Y-%m-%d`"__"$local_host/sync

相关文章
相关标签/搜索