Git Product home page Git Product logo

ebs-consistent-snapshot's Introduction

EBS Consistent Snapshot Creator

A Python script for creating consistent snapshots of EBS volumes on Amazon EC2. Inspired by ec2-consistent-snapshot written in Perl by Eric Hammond.

The Perl version is a bit of a hassle to install on some systems other than Ubuntu (e.g. CentOS), and I wanted something with as little system dependencies as possible

Features:
  • Automatically detects the file system format and freezes the file system for a consistent snapshot (file system is unfrozen after snapshot is done). A sync command is also called before the file system freeze to flush any recent changes to disk
  • If taking snapshots of MySQL data, tables are locked before file system is frozen, and unlocked after file system is unfrozen to ensure consistent database state
  • If taking snapshots of a MySQL replication slave, (optionally) replication can be stopped and restarted during table locks to minimize memory usage
Requirements:
  • Only certain Linux systems supported, including CentOS 5.x and CentOS 6.x. Does not support OS X
  • Python 2.6.x or later
  • MySQL-Python (if using on a volume with MySQL data)
  • boto (for interfacing with EC2)
  • Works best on volumes with XFS file system (for completely consistent snapshots)
How to Use:
  1. Add the AWS accont credentials near the top of ebs-consistent-snapshot.py
  2. Modify the parameters on the top of the main function in ebs-consistent-snapshot.py to match the desired settings
  3. Run python ebs-consistent-snapshot.py with a single argument, the local device name of the drive to snapshot (e.g. /dev/xvde)

ebs-consistent-snapshot's People

Contributors

jd007 avatar

Watchers

rosa maria palacios juncosa avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.