Backup of AWS Services in Source and Destination Region Using AWS Backup
Tags: awsbackup, ec2, s3
Published: 2023-01-22 17:02:34

“ 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](https://aws.amazon.com/s3/getting-started/) 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](https://aws.amazon.com/ec2/getting-started/) 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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pdf9gde8k5chi08zb94y.png)
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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6gtsux71adzpsr7iy1wo.png)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ilkvq3aeabj0otvvdbjj.png)

##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](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jo0jlegze2nfrugsvfxb.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8corxng3vao900ys18jf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32mxcth92azvfj3s5273.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zbui1pk97ryzi9ufh0ut.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oece48va0xqwknrq6uv8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xtse9b1ubkggennanvff.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sovcvafa65xu0w3cimyf.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/17jqrj9de60ti5ve57h1.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1aextexyajv72mb9r93b.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pqrkbuf4vba2ou60zhgr.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9lnyqvc2p5jbfjznq2fn.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m0fdldstqoflrg0aj5r8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yx60o2dk6evar1zoe5kc.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/arp7mhtd25i3xp4g01ex.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vxyecb7ton11b1ogg74j.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uys1cnk2psp00p1jje3i.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ju9xpd58w2499bvtgj8r.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q6vt41iohf9vir929gog.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xfublytx0r5kdojikw6p.png)

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

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zj8wezdeprawcgtx7ct5.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rc1cx5fgaerxgfed8cp7.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ld3sn3ucux1f6jyfeh56.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kooipo5d8xfg559t994x.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aehs6yg3gr9dohi2g7is.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ffvqr7w6nvfw7p0bryb8.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dh0bvj5ndrqt6zxba5cc.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1yub3txjk75vumov19lv.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g3xksk18tfqm3bje2dw1.png)

#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](https://us-east-1.console.aws.amazon.com/backup/home?region=us-east-1#/). To learn more, read the [AWS Backup documentation](https://docs.aws.amazon.com/aws-backup/?icmpid=docs_homepage_storage).

Thanks for reading!

Connect with me: [Linkedin](https://www.linkedin.com/in/gargee-bhatnagar-6b7223114)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/38sdi4nsp89fnui8h7dk.png)