How to keep only the last N snapshots of an EBS volume backup set

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.

Atlassian®, Atlassian Bamboo®, Bitbucket®, Atlassian Crowd®, Confluence®, Jira®, Jira Service Management™, Opsgenie®, and Statuspage™ are registered trademarks of Atlassian.
Amazon Web Services™, AWS™ and the “Powered by Amazon Web Services” logo are trademarks of, Inc. or its affiliates in the United States and/or other countries.

Utoolity® is a registered trademark of Utoolity GmbH.
© 2024 Utoolity GmbH. All rights reserved.