Backup to S3 with Cronjobs

Backing up your stuff is one of those things people know how important it’s, but never actually make it happen… at least not until it’s too late. I’m trying to prevent the last part, so here I’m going to tell you how to set up a simple backup workflow using Cronjobs and AWS S3. What I want to backup I’m self-hosting an instance of GoatCounter, an alternative to Google Analytics, to gather metrics of this blog.