Giter VIP home page Giter VIP logo

glaicer_backup's Introduction

Backup script using Amazon Glaicer

Script based on http://matthewlai.ca/download/backup.sh

This version uses Amazon Simle Notification Service to deliver backup notifications.

Prerequisites

From the amazon console

  • Create an IAM user with permision to use amazon glaicer and amazon SNS

  • Create an SNS topic for notifications. Note the ARN you'll need it when you modify the .env file in the described in the installation section

  • Create one or more e-mail subscriptions to receive notifications from the backup system.

Installation

 $ easy_install virtualenv # if virtualenv not installed
 $ git clone github.com/../glacier_backup
 $ cd glaicer_backp
 $ cp env.sample .env
 $ vi .env
 # Configure env according to the coments in the file

 $ virtualenv  .
 $ . bin/activate
 $ pip install -r requirements.txt
 $ cd /etc/cron.daily
 $ sudo ln -s /path/to/glaicer_backup .

Notes

The script works by using tar to create an incremental backup on the local server. You need at least as much free disk space on the server as you intend to backup to make the local tar ball.

Incremental files can be removed after they are uploaded to free up space, the script makes no attempt to do so on it's own.

Also note there is no restore mechanism, it's a manual process and it will take some time to complete. Possibly days:

  • To do so, you'll first need to start an Amazon Glaicer restore for each incremental backup. This could take up to 4-5 hours to complete. When it dose all e-mails registered per the instructions above will receive an e-mail noting that the archive is ready for downloaded.

  • Log on to the server where you wish the archive to be restored, and use a tool like curl to download the archive.

  • Untar the archives in order from earliest to newest

glaicer_backup's People

Contributors

trivio-scott avatar srobertson avatar

Stargazers

JT5D avatar

Watchers

 avatar Luke Pacholski avatar James Cloos avatar scott@zeepmobile.com avatar Tracy Smith 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.