2017 © Pedro Peláez
 

silverstripe-module silverstripe-aws-s3-backup

Backs up assets and database, and copies them somewhere safe.

image

spark-green/silverstripe-aws-s3-backup

Backs up assets and database, and copies them somewhere safe.

  • Thursday, February 25, 2016
  • by sparkgreen
  • Repository
  • 1 Watchers
  • 1 Stars
  • 171 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Spark Green module for copying archives to AWS S3

Authors

* Julian Smith <julian@wubies.org>

Overview

Transfer Silverstripe database and asset backups to your S3 bucket, (*1)

Requirements

* SilverStripe 3.*
* Silverstripe Backup (forked from DarrenInwood)

Installation

composer require spark-green/silverstripe-aws-s3-backup dev-master, (*2)

Setup

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)

Scheduling your backups

Add to your cron as the web user [WEBROOT]/framework/sake dev/tasks/S3Backup >> /tmp/S3Backup.log, (*10)

The Versions

25/02 2016

dev-master

9999999-dev

Backs up assets and database, and copies them somewhere safe.

  Sources   Download

The Requires