Skip to main content

Snaptastic is a python tool to enable easy snapshotting and mounting of snapshots on AWS/EC2 EBS volumes.

Project description

About the Author

Mike Ryan, Syadmin at Fashiolista, author of … Thierry Schellenbach, Founder/ CTO at Fashiolista

https://secure.travis-ci.org/tschellenbach/Snaptastic.png?branch=master

Command line usage

python snap.py make-snapshots solr python snap.py mount-snapshots solr

Example Settings File

REGION = ‘eu-west-1’ AWS_ACCESS_KEY_ID = ‘AKIAI3G42EFBKHLCPXFQ’ AWS_SECRET_ACCESS_KEY = ‘AwRnLC0tGEYCXvWP71wc1RFXXI5QmoaiEeHs5VZJ’

#create snapshotters from snaptastic import Snapshotter, EBSVolume

class SOLRSnapshotter(Snapshotter):
def get_volumes(self):
volume = EBSVolume(‘/dev/sdf1’, ‘/mnt/index’, size=200) volumes = [volume] return volumes

For more examples see examples.py

Snaptastic searches for its setting file at: * snaptastic_settings on sys.path * /etc/snaptastic_settings.py * /etc/snaptastic/snaptastic_settings.py

Features

  • Gracefull failure handling
  • Freezes for the absoulte minimal required duration
  • Batches boto API calls for faster batch volume mounting/snapshotting
  • Tested codebase

Todo

  • Prevent you from freezing the root filesystem
  • Auto terminate volumes after instance termination
  • Error testing against boto and real file system
  • Pypi

Workflow

  • fab validate (checks pep8 and unittests)
  • fab publish (if tests are ok, publishes the new version, tag, pypi)
  • fab clean (attempt to auto cleanup pep8 mistakes)

Django Jobs

Do you also see the beauty in clean code? Are you experienced with high scalability web apps? Currently we’re looking for additional talent over at our Amsterdam office. Feel free to drop me a line at my personal email for more information: thierryschellenbach[at]gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
snaptastic-0.0.1.zip (17.7 kB) Copy SHA256 hash SHA256 Source None Oct 9, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page