Giter Site home page Giter Site logo

edb's Introduction

Backup, encrypt and manage your database

EDB is a framework to make and manage backups of your database. It is composed by three macro areas that reflect themself inside edb.yml and are DBMS, CRYPTOGRAPHY and STORAGE. The first one deals with the actual backup process of your database. The second one will eventually encrypt the backup copies you made and the last one will copy them somewhere (S3 bucket, your local filesystem, etc.).

tl;dr Make (optionally) ciphered backups of your database(s) and then upload them via FTP and Amazon S3 (or just keep them in your server).

Install

$ gem install edb

Run

Setup and customize example/edb.yml (remember also to change the secret) and then:

$ edb example/edb.yml

Consider also to add EDB to your cronjobs.

Available modules

  • Cryptography: AES_256_CBC
  • DBMS: PostgreSQL, MySQL
  • Storage: S3, Filesystem, FTP

FAQ

Q: What if I want to dump two or three MySQL databases?
A: Just add a :MySQL: block for every database you need to dump.

Q: What if I want to save a database to S3 and another one into my local filesystem?
A: Well, you can't. By design, every macro-block (like, :DBMS:) is unaware of the other ones. So, for instance, I couldn't ask :Filesystem: to work only for the first :MySQL: block since it actually does not know what a :MySQL: block is. You need just to create two configuration files.

Q: Is there something to run it automatically at every night? Let's say 2:30am
A: Cronjobs to the rescue. Append the following line to your crontab -e: 30 2 * * * bash -l -c '`which edb` /home/deployer/edb.yml'.

edb's People

Contributors

roxasshadow avatar

Watchers

Hugo Epinosa 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.