December 11, 2017
Amazon EC2 Backup with NAKIVO Backup & Replication
This is the second blog post of the series on Amazon EBS snapshots vs. Amazon EC2 instance backup with NAKIVO Backup & Replication (in the first blog post, we explained what AWS snapshot is and described its major limitations).
In this post, we will describe NAKIVO Backup & Replication’s features and methods related to the creation and maintenance of AWS EC2 instance backups and lead you through the whole EC2 backup procedure.
How Does NAKIVO Backup & Replication Perform EC2 Instance Backup?
NAKIVO Backup & Replication is a modern VM backup solution with many useful data protection features. To learn more, you can download this Free White Paper outlining 21 advantages of modern native backup solutions (like NAKIVO Backup & Replication) over legacy backup software.
Using NAKIVO Backup & Replication, you can protect your AWS EC2 instances from any kind of disaster or failure and optimize your data protection lifecycle. The following are some of the product’s features designed to streamline the EC2 backup process.
With classic incremental backup systems, you need to perform a full backup from time to time. To save you time and backup repository space, NAKIVO Backup & Replication applies the “forever-incremental” backup approach.
In the forever-incremental EC2 backup, one initial full backup of your AWS EC2 instance is created. With every increment thereafter, only changes made in the EC2 instance since the last job run are stored in your backup repository.
This simple diagram illustrates how the technology works.
Application-aware EC2 Backup
Being able to perform application-aware backup is critical for ensuring the transactional consistency of applications and databases (like Microsoft Exchange, MS SQL, or Active Directory) running inside AWS EC2 instances. NAKIVO Backup & Replication provides you with an application-aware backup mode for Windows-based and Linux-based AWS EC2 instances. All you need is the proper credentials for the OS installed in the EC2 instance.
Instant Granular Recovery
With NAKIVO Backup & Replication, you can instantly recover individual files or MS Exchange, SQL, or Active Directory objects directly from the deduplicated and compressed EC2 instance backups. There is no need to recover a full AWS EC2 instance first.
Backup Scheduling and Retention Policy
To avoid overlapping backup jobs and overloading critical parts of infrastructure, NAKIVO Backup & Replication offers a built-in Calendar Dashboard and configurable retention policy. You can use these features for both Amazon EC2 instance backups and on-site VM backups.
Backups, especially in large infrastructures, comprise a vast amount of data, and thus take up a lot of storage space. NAKIVO Backup & Replication has the following features to reduce your data size:
- Skipping of swap data: NAKIVO Backup & Replication automatically skips swap files and partitions in AWS EC2 instances, so your EC2 backups are smaller and, therefore, occupy less storage space.
- Built-in global data deduplication: The product automatically deduplicates all blocks of data in EC2 backups across an entire backup repository, so only unique data blocks are stored.
- Data compression: The deduplicated blocks of data are further compressed, shrinking the storage space your EC2 backup takes up.
This simple diagram illustrates how the backed-up EC2 instance data is reduced if all of the abovementioned features are used.
Copy your EC2 instance backup anywhere
One of the greatest advantages of using NAKIVO Backup & Replication to protect your Amazon EC2 instances is that you can easily create and maintain copies of your EC2 backups and choose from several backup repository options for where to store them. This could include on-site, off-site, or in another supported cloud.
Download the Free Edition of NAKIVO Backup & Replication – absolutely free, forever!
How to Back Up an Amazon EC2 Instance with NAKIVO Backup & Replication
To perform EC2 instance backup with NAKIVO Backup & Replication, there are three main steps:
- Add your Amazon AWS account to the product’s inventory;
- Deploy the transporter (this is the component of NAKIVO Backup & Replication that performs all of the data protection and recovery tasks: backup, replication, recovery, data reading, compression, deduplication, encryption, etc. – read more here);
- Create and run an Amazon EC2 backup job.
Before you start, create and download your AWS Access Key ID and Secret Access Key. These are used by NAKIVO Backup & Replication to work with your Amazon AWS account(s). To create an AWS Access Key ID and Secret Access Key, do the following:
- If you don't have an AWS account, create a new one at https://aws.amazon.com.
- Open the IAM console.
- From the panel on the left, click Users.
- Click your IAM username (the name itself, not the checkbox to the left of it).
- Go to the Security Credentials tab and then click Create Access Key.
- Click Download Credentials and store your keys in a secure location.
After you have created and downloaded the keys, do the following:
- Log in to the web interface of NAKIVO Backup & Replication and go to the Configuration dashboard. Under the Inventory tab, click Add New…
- Select AWS account.
- Fill in the following fields:
- Display name: Enter a name for your AWS account. This is how it will be displayed in the Inventory tab;
- Type: Select AWS account;
- AWS access key ID: Enter the access key ID for your AWS account;
- Secret access key: Enter the secret access key for your AWS account.
- Go to the Transporters tab, then click Add Transporter.
- Select Deploy new transporter (AWS EC2).
- Fill out the following fields:
- Transporter name: Enter a name for your new transporter. This is how it will show up in the Transporters tab;
- Transporter type: Select Amazon EC2;
- Region: Select the region that corresponds to the EC2 instance(s) you want to back up;
- Instance type: Select the type of Amazon EC2 instance to which the transporter will be deployed (in our case, it is “t2.medium”).
NOTE: Some EC2 instance types may be able to process data faster, but using them may increase your spending.
- Wait for the deployment process to complete.
- Go to the Jobs dashboard.
- Select Amazon EC2 backup job.
This will open the New Backup Job Wizard for Amazon EC2.
- At the first step – Instances – select the EC2 instance that you want to back up. Click Next.
- At the second step of the Wizard – Destination – select your backup repository. This will be the target location for your EC2 instance backup.
- At the third step of the Wizard – Schedule – set up your backup job schedule. In our example, backups will be performed each weekday at 12:00 AM. Click Next.
- At the fourth step – Retention – configure the retention policy for your EC2 backup jobs. Click Next.
- At the fifth and final step of the Wizard – Options – fill in the input fields and specify the following parameters:
- Job name: Enter a name for your EC2 backup job;
- Temporary volumes: Select a temporary Amazon volume for while your EC2 backup is created. To minimize costs, select the default “Magnetic” volume. Click Finish or Finish & Run to start the backup process.
NAKIVO Backup & Replication allows you to create on-site backups of your Amazon EC2 instance(s) with retention policy planning, deduplication, encryption, and other useful features to cut costs and keep your data safe. When using the software, you get all benefits offered by AWS EC2 instances as well as reliable, easy-to-maintain EC2 backups, so you can rest assured you’re prepared for any kind of disaster.
In our next article, we will compare the two methods – Amazon EBS snapshots and Amazon EC2 instance backup with NAKIVO Backup & Replication. So, stay tuned for Blog updates!