Skip to content

Instantly share code, notes, and snippets.

@rbanks74
rbanks74 / ebs-snapshot.sh
Created May 1, 2015 17:24
Copy of CaseyLabs/aws-ec2-ebs-automatic-snapshot-bash
#!/bin/bash
export PATH=$PATH:/usr/local/bin/:/usr/bin
# Safety feature: exit script if error is returned, or if variables not set.
# Exit if a pipeline results in an error.
set -ue
set -o pipefail
## Automatic EBS Volume Snapshot Creation & Clean-Up Script