What is AWS Backup?

AWS Backup is a fully managed backup service that makes it easy to centralize and automate the backup of data across AWS services in the cloud and on premises.

aws backup

Creating backup policies will automate backup schedules and retention management.

Supported AWS Services:

  • Amazon Elastic File System (EFS)
  • Amazon Elastic Compute Cloud (EC2)
  • Amazon Dynamo DB
  • Amazon Elastic Block Storage (EBS)
  • Amazon Storage gateway
  • Amazon Relational Database Services (RDS)

Features:

  • Cross Region Backup.
  • Centralized Backup Management.
  • Tag Based Backup.
  • Policy Based Backup policies.
  • Lifecycle Management policies.
  • Backup Activity Monitoring.
  • Backup Access Policies.

Setting up Backup Plan:

This article guides you to perform the necessary tasks to backup and restore the AWS resources using AWS Backup Service.

Pre-Requisites:

An existing AWS services such as EBS volume , RDS ,EC2 Instance ,Dynamo DB.

You can refer the below articles related to above Services:

CREATE RDS INSTANCE FROM AWS CONSOLE

CREATE RDS INSTANCE USING TERRAFORM

CREATE AND RESTORE RDS SNAPSHOTS

CREATE AND USE DOCUMENT DB IN AWS

CREATE EC2 INSTANCE USING TERRAFORM

Lets continue with AWS Backup,

Creating Scheduled Backup:

Here , We will create a Backup plan and assign the resources to it and then create a backup vault.

A Backup plan is a policy expression that defines when AWS backup should backup AWS services such as RDS,EC2,EBS,Dynamo DB.

Then based on the Backup plan , It backup the services and keep the backup as per the Retention period provided.

BACKUP PLAN WILL BE CREATED IN 2 WAYS:

  • Creating a backup plan from the Scratch.
  • Create one based on the exiting Backup Plan.

To create Backup Plan, Go to AWS Backup Console,

https://console.aws.amazon.com/backup

Choose Create Backup Plan, Select Start from an existing plan

aws backup

Choose a plan from the list, For example , Daily-35day-Retention

aws backup
aws backup

Under Backup Rules, You can edit the existing rule as per your need ,Like changing retention period etc.

aws backup

And the Backup Vault should be default.

Then Add Tag to the Backup Plan , Click Create plan.

Now We have created a Backup plan.

Assigning Resources to Backup Plan:

Select the Backup plan which you have created, Under Resource Assignments , We are going to apply the backup plan to our AWS resources.

aws backup

Click Assign resources , Give a name to an assignment , We will use the default role.

aws backup

Next We have to choose the resources based on the Tags or Resource ID

Select Resource ID ,If you havn’t tagged your AWS resources.

Select the Resource type , and select the particular resource.

aws backup

If you want to assign multiple resources, click Add Assignment

Click Assign resources.

Creating a Backup vault:

We will create and use the custom backup vault Instead of using the default vault , So that we can organize the group of backup in the same vault.

To create backup vault , Choose Backup vaults in the left pane

Click Create Backup vault

Give a name to the vault and then choose the KMS key , You can use the default key or You can use the existing KMS key If you already have created earlier.

aws backup

Add a Tag to the custom vault ,

aws backup

Choose Create Backup vault.

Now you can edit the Backup plan to use the backup vault which we have created.

Hope it helped you to backup your AWS resources.

In the Next article, We will see how to create On-demand backup using AWS Backup service.

CREATING ON-DEMAND BACKUP USING AWS BACKUP