Pressable provides a mechanism to send nightly backups of a site out to an Amazon S3 Bucket as a means for customers to keep copies of their data in an external location. We also provide this same offsite backup mechanism for Rackspace Cloudfiles Containers as well.
Log in to Amazon Web Services (AWS)
If you don’t already have an AWS account create one over at Amazon. If you already have an account log in.
Then select S3 under Storage from the control panel.
Create a bucket:
Inside your S3 account create a new bucket by clicking on the “Create Bucket” button:
Start by giving the bucket a name and selecting the region you’d like to use. As bucket names are shared across regions you’ll need to create a name that is unique. We suggest including things like your site name or other unique identifiers. You’ll need this back in the Pressable settings so make it something you’ll remember. You may also want to your bucket a name relevant to what is going to be put inside of it.
Setting Up Amazon’s IAM Permissions
Now we need to use the AWS Identity and Access Management (IAM) Console to create a group and user for Pressable to use.
Once you are on the IAM dashboard, go to Policies and then click Create Policy.
The user we will be creating will have write only access to our backup bucket this prevents backups from being deleted even if someone has the correct credentials. Alternatively you could skip this step and use the AmazonS3FullAccess policy which gives both read and write access.
After clicking create policy, click the JSON tab:
You should copy and paste the following policy (NOTE: Please replace instances of BUCKETNAME below with the name of your bucket):
Click Review Policy, and then set a name for your policy. Finally, click Create Policy to save your new policy:
Next, click on Groups in the sidebar and then the Create New Group button:
From here, give the group a name and click Next Step:
Now search for and add the policy you created previously. Click Next Step to continue.
If you did not create a user above and want to use the default S3 full permission policy search for AmazonS3FullAccess and add the policy to your group.
Review your policy and group are correct and click Create Group.
What we are going to do now is create a user to access this group. Click on Users then Add User:
Now we need to give the user a memorable name, enable Programmatic Access, then click Next: Permissions:
Now you need to add your new user to the group we created. Click Add user to groups and select the group name we created. When you’re done your account should look like this:
If everything looks OK, click Create user. Now you will be given access to the security credentials. Make sure to download the CSV file and keep it in a safe place. We will use these credentials in MyPressable.
Set Up Backups on MyPressable
Now that you have the user and group created, head back to the MyPressable. Click on Profile > Backup Settings. Then select Amazon to provide the Amazon Credentials in your account. When entering the bucket name please enter just the bucket name and not a sub-folder.
Once you’ve clicked Create Amazon Backup, we’ll test the credentials to make sure they work. If everything is successful you’ll see a permission_check.txt file in your new bucket:
Activate Backups for your site
Now you’re all set to add a backup location to a site. Click the site (My Sites > Site name) in your MyPressable Panel that you want to setup backups for.
Then click the Backups at the top:
Click Activate to activate the location on that site:
That’s it, backups are setup and ready to go.