moving the aws sync script to log rotate