DEV Community

GargeeBhatnagar for AWS Community Builders

Posted on

2

Backup of AWS Services in Source and Destination Region Using AWS Backup

“ I have to do a backup of aws services as ec2 and s3 in source as well as in destination region. I have checked various ways to do it but it's easy to use aws backup service. Pricing of S3 bucket as per storage size, ec2 server as per instance type with running time and aws backup service as per storage.”

AWS Backup is a fully managed service that makes it easy to centralize and automate data protection across AWS services in the cloud and on premises. It allows you to automate and consolidate backup tasks that were previously performed service by service and removes the need to create custom scripts and manual processes.

In this post, you will get to know how to do backup of aws services in source and destination region using aws backup . Here I have created s3 bucket, ec2 server and aws backup plan with resources.

Prerequisites

You’ll need an Amazon Simple Storage Service for this post. Getting started with Amazon Simple Storage Service provides instructions on how to create a bucket in simple storage service.

You’ll need an Amazon EC2 Server for this post. Getting started with amazon EC2 provides instructions on how to launch an EC2 Server. For this blog, I assume that I have an ec2 server and a s3 bucket created.

Architecture Overview

Image description
The architecture diagram shows the overall deployment architecture with data flow, aws backup, ec2 and s3.

Solution overview

The blog post consist of the following phases:

  1. Create of AWS Backup Plan with Source and Destination Vault
  2. Output as Source Vault and Destination Vault for Backup Storage

I have a s3 bucket and an ec2 server as below →
Image description
Image description

Phase 1: Create of AWS Backup Plan with Source and Destination Vault

  1. Open the AWS Backup console and create a backup plan with source backup vault(N.Virginia) and destination backup vault(Oregon). Once the backup rule is created, assign resources as ec2 and s3 with default roles. Also schedule a backup job run.

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Phase 2: Output as Source Vault and Destination Vault for Backup Storage

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Image description

Clean-up

Delete S3 Bucket, EC2 Server and AWS Backup Plan.

Pricing

I review the pricing and estimated cost of this example.

Cost of S3 = $0.20

Cost of Elastic Compute Cloud = $0.02

Cost of AWS Backup = $0.00

Total Cost = $0.22

Summary

In this post, I showed “backup of aws services in source and destination region using aws backup”.

For more details on AWS Backup, Checkout Get started AWS Backup, open the AWS Backup console. To learn more, read the AWS Backup documentation.

Thanks for reading!

Connect with me: Linkedin
Image description

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, cherished by the supportive DEV Community. Coders of every background are encouraged to bring their perspectives and bolster our collective wisdom.

A sincere “thank you” often brightens someone’s day—share yours in the comments below!

On DEV, the act of sharing knowledge eases our journey and forges stronger community ties. Found value in this? A quick thank-you to the author can make a world of difference.

Okay