Storing files to multiple AWS S3 buckets

Option 1, Single bucket replication (files added to Bucket A are automatically added to Bucket B) If you aim to store files to a second S3 bucket automatically upon uploading, the built in “Cross Region Replication” is the method to use. Its very easy to set up with just a few clicks in the AWS …

Continue reading ‘Storing files to multiple AWS S3 buckets’ »

How to back up your mysql database from a Laravel 5.1 application to Amazon S3

The following steps are a summary of the instructions from https://github.com/backup-manager/laravel, specific to a Laravel 5.1 application that needs┬áto back up a mySQL database to an AWS S3 bucket. The backup-manager library uses mysqldump to perform the database dump and works well on larger databases also. First, create your bucket on AWS and create the …

Continue reading ‘How to back up your mysql database from a Laravel 5.1 application to Amazon S3’ »

Copy a large number of files from a server to AWS S3

TL/DR: Use s3-parallel-put, a Python script to copy to S3 — I recently worked on an EC2 instance which needed a large number of files, 200gb+ to be copied over to AWS S3. The overall goal was to move all data over to s3 to facilitate future growth and allow for multiple instances in different …

Continue reading ‘Copy a large number of files from a server to AWS S3’ »