I want to back up the instance store volume on my Amazon Elastic Compute Cloud (Amazon EC2) instance. How do I create an Amazon Elastic Block Store (Amazon EBS) volume to back up the instance store volume?
Keep backups of all data stored in your AWS infrastructure so that you can roll back changes and protect your data from application failures and infrastructure events.
You can back up data stored on an instance store volume in one of the following ways:
- Create a new EBS volume, and then copy the data on your instance store volume to the EBS volume.
- Back up the individual files stored on an EBS volume.
Create a new EBS volume and migrate your data
- Create an EBS volume. Be sure to select a size large enough to hold the data that you’re migrating.
- Attach the EBS volume to your instance.
- Make the volume available to your operating system, and then create a compatible file system on the volume. For Linux instances, see Making an Amazon EBS volume available for use on Linux. For Windows instances, see Making an Amazon EBS volume available for use on Windows.
- Copy the data using the disk management or migration tool that you prefer for your operating system, such as rsync for Linux or robocopy for Windows. For more information on rsync, see rsync(1) on the Linux man page. For more information on robocopy, see robocopy in the Microsoft documentation.
Note: Keep both volumes available until you’re sure that the copy operation is successful and completed. You might need to perform additional configuration before the new EBS volumes are usable with your instance.
Back up individual files stored on an EBS volume
You can back up individual files instead of, or in addition to, backing up the volume itself. For an example solution using Amazon Simple Storage Service (Amazon S3), see Getting the most out of the Amazon S3 CLI.
Creating an instance store-backed Linux AMI