Script to rotate log files to S3