Skip to content

serebrov/backup_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Backup tools based on paver (backup directories and mysql databases - dump, archive, encrypt)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages