Automate Zesty Disk Backups
  • 1 Minute to read
  • PDF

Automate Zesty Disk Backups

  • PDF

Article summary

This topic describes how to automate backing up your Zesty Disks using the AWS Data Lifecycle Manager.

This enables you to benefit from Zesty Disk while also leveraging AWS's core security and data protection abilities to mitigate any risk of data loss.

Prerequisites

  • IAM role to the AWS account where the instance is configured that enables creating and managing AWS Data Lifecycle Manager.

To automate Zesty Disk backups:

  1. Log in to the AWS Management Console.

  2. From the EC2 menu, select Elastic Block Store > Lifecycle Manager.

  3. Click Create lifecycle policy.

  4. From the Schedule-based policy section, select EBS snapshot policy then click Next.

  5. Configure the settings:

    1. Select Instance as the target resource type.

    2. Apply the policy to specific resources by entering the tags of instances running Zesty Disk).

    3. Enter an easily identifiable Policy description, such as 'Zesty Disk backup for dev environment.'

    4. Select an IAM role to be used by this policy.

    5. Add a tag with these values: Key: ZestyDiskBU, Value: True
      Note, this is not optional.

    6. Set the Policy status as Enabled.

    7. Ensure that the Exclude root volume checkbox is clear (unchecked).
      Root must be included in the snapshot for restore to be successful.

    8. Click Next.

  6. Configure a backup schedule (Min: 1).
    In the following example, we created a new snapshot of each instance every 24 hours at 00:00 UTC, while always keeping the previous three snapshots.

  7. In the Advanced settings section, select Copy tags from source.

    This will add the ZestyDisk tag attached to all of your volumes to the snapshots, making it possible to easily filter for them later.

  8. There are other options. Review them and decide whether to enable them.

  9. Click Review policy.

  10. Review policy details to ensure that they are correct.

    (Optional) To create additional schedules, click Add another schedule.

  11. Click Create policy.

Volumes that match the specified tags will be backed up automatically in accordance with this policy.

To restore a snapshot taken with the AWS Lifecycle Manager, see Restoring an Amazon EBS volume or an EC2 instance (https://docs.aws.amazon.com/prescriptive-guidance/latest/backup-recovery/restore.html#restore-snapshot).


Was this article helpful?