Skip to content

Script: backup_snapshot

Bruno Galindro da Costa edited this page May 10, 2015 · 1 revision

backup_snapshot

Use this script to execute ec2 backup snapshots

How to use

This script will search for tagged instances and volumes to make volume snapshots.

Tags

Some tags can be used on instance and on volume(s) at same time. In this case, to control which value is used, the script considers the value of the tag configured on volume, overwriting the instance tag's value.

Instance only tags

  • backup_instance_state: this tag controls the state in which the instance must be in to execute snapshots.
    • This tag is required
    • Possible values: running or stopped

Instance / Volume tags

  • backup_retention_days: this tag controls the snapshots retention in days.

    • Default: 10
  • backup_ignore_retention_if_state_differs: If the current state of the instance differs from the state configured in backup_instance_state tag, the retention policy will be ignored.

    • Default: true
    • Possible values: true or false
  • backup_exec: execute backup?

    • This tag is required
    • Possible values: true or false