Coder Social home page Coder Social logo

backup_tools's Introduction

Command line backup tools

Backup tools are implemented as paver tasks.

Supported operations:

  • (mysql) List mysql databases
  • (mysql) Dump mysql database (or several or all)
  • (archive) Compress a file or a dir into gz/bz2/zip archive
  • (backup) Generate backup file name with current date/time based on specified backup base name
  • (backup) Remove old backups for specified backup base name
  • (encrypt) Encrypt file with gnupg

Each task can be launched separately via paver, for example:

$ ./paver mysqldump --mysql_user=root --db redmine --db sugarcrm --dest=/home/seb/backups

Paver also can show the list of available tasks:

$ ./paver --help

And a help for a specific command:

$ ./paver mysqldump --help

Examples of top-level tasks which combine base operations to perform a backup are in the main pavement.py file.

Also see backup.sh.example for master shell script to launch backup process (it can be used as a cron job):

$ sudo crontab -e
@midnight /home/seb/backups/backup.sh >/home/seb/backups/backup.log 2>/home/seb/backups/backup.err.log

Tasks implementation is based on following code (see ex/ folder):

Paver resourses:

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.