How do I snapshot and prune all my volumes in a region on a schedule?

There is a new task *Snapshot All EBS Volumes in Ylastic just for this. You can use this task in two different ways.

  • You can provide a string to match in the name tag for volumes. So if you tag all your production volumes with the name tag prod-xxx, you can use this task to snapshot all volumes that contain the string prod in the name tag, while keeping only the specified number of latest snapshots for each volume.
  • You can also provide an asterisk for the match string. This is a special meta string, and will match ALL volumes in that region.