My first post here but I thought to share a useful bash script I wrote to create offsite backups of multiple wordpress sites on your server to Amazon S3. I wrote this as I was getting frustrated with all these available premium plugins that have issues like bloat or were memory hogs. I decided to skip the wordpress cron system that most of these backup plugins use and wrote a simple bash script using wp-cli and aws-cli. Works like a charm and thought to share with the community.
I love aws cli and its awesome sync command.