Backing up wordpress to S3 bucket with cron

So after doing several scripts for backing up wordpress to various places, and primarily S3 buckets, I figured I better put the script here so it is easier for me to find it the next time, and maybe it will be useful for you too 🙂 “Before you act for the greater good, you should …