In our previous article, we demonstrated how to back up your highly-available WordPress site using the backup feature of N2WS Backup & Recovery (CPM). In this article, we discuss how to back up a highly-available WordPress site using CPM’s cross-account functionality. Cross-account and cross-region functionality help schedule automated backups across accounts and regions using a combination of AWS tags and CPM’s DR module, which includes backup and recovery options. Security-wise, this feature reduces risks like deletion of resources in a production account due to compromised AWS credentials. It also allows you to recover resources—including Amazon EC2 instances, Amazon EBS volumes, and Amazon RDS databases—to a different AWS account. In addition, you can back up encrypted Amazon EBS and Amazon RDS volumes and snapshots from your account to different accounts or regions using the same functionality. Let’s continue with the scenario from the previous article: a WordPress blog in need of a backup. In this case, we will set up and use cross-account backup in order to complete an automated backup of the WordPress site. If there are security concerns, it will take less time to shift the site to another account because there is no downtime.
Start backing up your WordPress site with these steps:
- Set up WordPress on an Amazon EC2 instance using AWS CloudFormation.
- Add your AWS account to CPM using an access key and secret key or an IAM role.
- Subscribe to our Advanced Edition or Enterprise Edition.
- Make sure you have two (2) AWS accounts associated with CPM.
Step 1: Create a ScheduleUsing the schedule lets you define when a backup policy should be executed. To create a schedule, first log in to N2WS Backup & Recovery (CPM). Then navigate to the Schedule tab and click “New Schedule.” Now create a schedule.
Step 2: Create a Backup PolicyYour backup policy is important because it is where you define the rules for when, where, and how you want to conduct backups. To create a new policy, navigate to the Policies tab and click “New Policy.” Then create a simple backup policy.
Step 3: Create or Add Tags to AWS ResourcesBefore you can back up your highly available WordPress site via CPM, tag your AWS resources so that the backup policy will be associated with those resources. This can be done using AWS tags. Here we will add tags to WordPress stack resources:
- Add tag key as : “cpm backup”
- Add tag value as : “BackupWordpress”