This is a simple bash script that we use to tar our public html folder, copy it to Amazon S3 and then delete the file from our server.
Setting up awscli is up to you. You can find the documentation here:...
XF Resource is a site dedicated to bringing you add-ons and resources that we use across our sites at Whipp Media. Feel free to join and ask any questions or browse our free resources or add-ons.
Backup Public Folder To Amazon S3 via Bash Script
Create a bash script to backup your public html folder to Amazon S3