This module backs up your site to Amazon S3. Other storage providers may be supported in the future.
If mysqldump
and tar
are present on your PATH and can be run from PHP, they will be used.
Otherwise, a pure-PHP fallback will be used to create the backups.
Not tested on Windblows.
- If you haven't already, create an AWS account.
- Log in to the S3 Management Console.
- Click 'Create Bucket', give it a name, choose a region, and hit 'create'.
- Next, head to the IAM Management Console and create a new user. Be sure to note down the security credentials shown, they will not be shown again.
- Select the user you just created, then in the permissions tab, choose 'Attach User Policy'.
- Choose 'Custom Policy', give it a name, and paste in the IAM policy shown below these steps, substituting
YOUR_BUCKET_NAME
with the bucket name chosen in step 3. - Fill in the access key ID, secret access key, and bucket name in the ScheduleCloudBackups module config.
- Don't forget to set up a cron job to run the backup task!
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::YOUR_BUCKET_NAME/*",
"arn:aws:s3:::YOUR_BUCKET_NAME"
]
}
]
}