Code Monkey home page Code Monkey logo

da-ebs-tools's Introduction

DeviantArt EBS utilities
========================

da-ebs-snapshot
---------------

This utility creates a consistent snapshot of one or more local filesystems.  Given one or more mount points, it determines EBS volume IDs, freezes tables in MySQL, freezes the filesystems, and snapshots them.  It tags snapshots taken together with an identical `uuid` tag.

da-prune-snapshots
------------------

This utility prunes snapshots of volumes attached to the current instance.  It uses the `ttl` tag on the snapshot to determine whether it has expired and should be deleted.  When using `da-ebs-snapshot`, add a `--tag ttl=86400` tag to schedule the snapshot(s) for deletion after 1 day.  For x hours/x days/x weeks/x months snapshot retention schemes, use multiple cron jobs run hourly, daily, weekly, etc, each with a different TTL.

library
-------

Included is `da_aws.py`, a couple of common utility functions used by the scripts.  These are installed in `/usr/local/lib/python` by the debian package.  To easily add this path to your PYTHONPATH globally, add a file `/usr/local/lib/python<version>/dist-packages/local.pth` containing `/usr/local/lib/python`.

da-ebs-tools's People

Contributors

chrisbolt avatar

Watchers

 avatar

Forkers

kleopatra999

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.