Mike Mead

Automate EC2 (AWS) Backups with Python

Written by Mike

May 23, 2014

AWS

Automate EC2 (AWS) Backups with Python

Taking a manual backup of an EC2 instance is easy: You right click on the associated volume(s) and create a snapshot.

EC2 Snapshot

You can easily automate the above process using the AWS Python SDK (Boto).

Example Python Script:

ec2_snapshot.py

Usage:

python ec2_snapshot.py volume_id server_name

I'm using SendGrid to simplify sending email notifications but the script could be modified to send emails via your SMTP server.

See Also:

AWS SDK for Python

comments powered by Disqus