spark-green / silverstripe-aws-s3-backup
Backs up assets and database, and copies them somewhere safe.
Installs: 319
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Type:silverstripe-module
Requires
This package is not auto-updated.
Last update: 2025-01-04 20:41:51 UTC
README
Authors
* Julian Smith <julian@wubies.org>
Overview
Transfer Silverstripe database and asset backups to your S3 bucket
Requirements
* SilverStripe 3.*
* Silverstripe Backup (forked from DarrenInwood)
Installation
composer require spark-green/silverstripe-aws-s3-backup dev-master
Setup
You will need to create a new Amazon IAM user that has access to your S3 container.
If you don't have a user, you can use these instructions
- Login to AWS console and go to IAM (Identity and Access Management_
- Click on Users
- Click on Create New Users
- Add a user name (I'm using "s3-backup") and click Create
- Click Show User Security Credentials and copy the Access Key and Secret Key into the Settings > AWSBackup tab in your Silverstripe installation
We now to give that user access to your S3 buckets
-
Go back to IAM Users and click on your new user
-
Go to Permissions and add the following policy:
AmazonS3FullAccess
Lastly, go to S3 and create a bucket, and add that bucket name to the Settings > AWSBackup tab in your Silverstripe installation
You should now be able to test transferring files to your S3 bucket.
Scheduling your backups
Add to your cron as the web user [WEBROOT]/framework/sake dev/tasks/S3Backup >> /tmp/S3Backup.log