GithubHelp home page GithubHelp logo

conserva's Introduction

Conserva - Console tool for database backups

Console utility that allows you to save your database dumps. Many settings to configure. There are many different storage purposes (MySQL, PostgreSQL, Redis, Files)

site: conserva-backup.org

Requirements

Conserva requires a PHP 5 interpreter (v5.3+)

How to use with config

  1. Download the latest version
    $ wget http://conserva-backup.org/conserva
  1. Set executable
    $ chmod +x conserva
  1. Run
    $ ./conserva create config
To get the default config. In the current folder will be stored on the default configuration.
  1. Open any config editor for editing.
    database.host     = 'localhost'
    database.username = 'root'
    database.password = '1'
`database.*` - keys to access the database
    save_last = 30
`save_last` - number of the last database dump (If 30, then the save 31 dump, dump the oldest will be removed)
    own_folder_for_db = true
`own_folder_for_db` - When enabled, each database will be stored in a folder with the name of:
    ; run_folder /
    ;   / database_name1 /
    ;       / database_name1-2013040412.tar.gz
    ;       / database_name1-2013040416.tar.gz
    ;       / database_name1-2013040420.tar.gz
    ;       / ...
    ;   / database_name2 /
    ;       / database_name2-2013040412.tar.gz
    ;       / database_name2-2013040416.tar.gz
    ;       / database_name2-2013040420.tar.gz
    ;       / ...
    folder_prefix = db
`folder_prefix` - option allows you to specify the name of the folder inside database directory (useful if the dump site, it is not just dump the database, but, for example, the dump dump redis DB + DB + Dump scripts)
    ; run_folder /
    ;   / database_name1 /
    ;       / db /
    ;           / database_name1-2013040412.tar.gz
    ;           / database_name1-2013040416.tar.gz
    ;           / database_name1-2013040420.tar.gz
    ;           / ...
    ;   / database_name2 /
    ;       / db /
    ;           / database_name2-2013040412.tar.gz
    ;           / database_name2-2013040416.tar.gz
    ;           / database_name2-2013040420.tar.gz
    ;           / ...
    backup_folder = .
`backup_folder` - folder, where backups will saved
  1. Add a cron job
    $ ./conserva mysql --config=/path_to/config.ini

conserva's People

Contributors

maxgu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

conserva's Issues

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.