how to apply automatic snapshot backup

How To Create Automatic Backup of Volumes And EC2 On Amazon cloud

AWS has provided us with an automatic snapshot backup of EBS Volume and Instances using the data lifecycle manager. we have an AWS snapshot lifecycle policy that helps us to keep auto-backup of volumes by creating a policy.  

Check Out: How To Mount the Same Volume To Multiple Container In Docker

Find Volume Attach To Instances:

If you’re not sure which EBS volume attached to your EC2 instance,
you find using the below path.
EC2- > Select Server -> Descriptions -> find root/ Block Devices ID

automatic volume backup

Another way is to find the Volume attached is EBS -> volumes -> Select volume and look for the below path.

As you can see this volume attached to my running instances.

automatic snapshot backup

It’s better you give the proper tag to all instances, volumes and all to identify them easily.

Check Out: How To Install Moz SEO Extension In Google Chrome

Configure Automatic snapshot Backup:

EC2 -> Elastic block storage -> Lifecycle Manager

snapshot lifecycle policy

Click on Create snapshot Lifecycle policy and I have given a description, the selected resource type is volume, and target tags mean you need to select the EBS volume and much more. We can also schedule it for all EBS volumes in a single policy and finally tags them with a name.

volume backup aws

The next part is to configure the policy schedule. I have given a name, schedule backup at every 4 hours means it will take 4 backups in a day and retain for 10 days means it will delete old snapshots for more than 10 days.

Check Out: How To Configure GZip Compression In Apache Server Linux

If you require to copy the snapshots to another region, you can enable it and there’re lots of options available you can choose them according to your need. Finally, click on Create policy.

You’re done volume backup aws snapshot lifecycle policy

LEAVE A REPLY

Please enter your comment!
Please enter your name here