Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

You want to regularly backup your EBS volumes, but only keep the last N snapshots so that you can retain an isolated use case oriented set of snapshots in an orderly fashion.

Step-by-step guide

This can be achieved by using the EBS Volume task's Grow & Prune Snapshot Backup Set action as follows:

  1. Specify the Volume ID (or a Filters JSON) to select the volume(s) you want to retain backups for.
  2. Choose an applicable Backup Set name for your use case so that you can retain different sets and identify the snapshots in the AWS Management Console (they will be automatically tagged with that name).
  3. Specify the Backup Retention number N (the number of snapshots that should be retained in this backup set).
  4. Arrange for the Bamboo build to trigger at an interval applicable for your use case, for example via cron-based scheduling to retain daily backups of your volumes, or after you have pushed changes to your repository to backup your volumes before deploying new code.

 

What is a Backup Set for EBS Volumes?

A Backup Set allows to retain an isolated use case oriented set of the last at most N snapshots of one or more EBS volumes.

When the EBS Volume task's Grow & Prune Snapshot Backup Set action executes, it will:

  1. Create a new EBS snapshot for each selected EBS volume and tag the snapshot with a key Backup Policy and a value based on the Backup Set name (thus "grow the snapshot backup set")
  2. Enumerate all existing snapshots for the selected EBS volume(s) that are tagged with a key Backup Policy whose value matches matches the Backup Set name
  3. If it finds more snapshots in this Backup Set than defined by the Backup Retention number, it will delete the oldest snapshots in FIFO order until only the desired number is left (thus "prune the snapshot backup set")

(lightbulb) While there are also separate Grow Volume Backup Set and Prune Volume Backup Set actions to separate the two activities (for example, to only grow the backup set on each work day, but prune it to the last work day's image at the end of the week), the Grow & Prune Volume Backup Set action covers most rotating backup use cases in a single operation.



  • No labels