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