dev-master
9999999-devBacks up assets and database, and copies them somewhere safe.
The Requires
- spark-green/silverstripe-backup *
- tpyo/amazon-s3-php-class *
- silverstripe/cms 3.*
- silverstripe/framework 3.*
by Julian Smith
Backs up assets and database, and copies them somewhere safe.
* Julian Smith <julian@wubies.org>
Transfer Silverstripe database and asset backups to your S3 bucket, (*1)
* SilverStripe 3.* * Silverstripe Backup (forked from DarrenInwood)
composer require spark-green/silverstripe-aws-s3-backup dev-master, (*2)
You will need to create a new Amazon IAM user that has access to your S3 container., (*3)
If you don't have a user, you can use these instructions, (*4)
1) Login to AWS console and go to IAM (Identity and Access Management_ 2) Click on Users 3) Click on Create New Users 4) Add a user name (I'm using "s3-backup") and click Create 5) Click Show User Security Credentials and copy the Access Key and Secret Key into the Settings > AWSBackup tab in your Silverstripe installation, (*5)
We now to give that user access to your S3 buckets, (*6)
1) Go back to IAM Users and click on your new user 2) Go to Permissions and add the following policy:, (*7)
AmazonS3FullAccess
Lastly, go to S3 and create a bucket, and add that bucket name to the Settings > AWSBackup tab in your Silverstripe installation, (*8)
You should now be able to test transferring files to your S3 bucket., (*9)
Add to your cron as the web user [WEBROOT]/framework/sake dev/tasks/S3Backup >> /tmp/S3Backup.log, (*10)
Backs up assets and database, and copies them somewhere safe.