0.0
No commit activity in last 3 years
No release in over 3 years
BackupDriver is a tool created to backup files from Unix systems.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0

Runtime

= 0.18.1
 Project Readme

BackupDriver

BackupDriver is a tool created to backup files from Unix systems. It's was created to address some very specific personal needs:

  • Backup log files to Amazon S3 and remove them from the server
  • Backup local mysql databases to Amazon S3

The generated backup file is encrypted using gpg and sent to Amazon S3. The operations are performed using tools that must be installed on the system:

Backup is another tool that you might be interested in checking out. It's scope is much broader. So it can be useful in many situations that are not covered by BackupDriver.

Installation

Add this line to your application's Gemfile:

gem 'backup_driver'

And then execute:

$ bundle

Or install it yourself as:

$ gem install backup_driver

Usage

Backup nginx log files

backup_driver backup --source /var/log/nginx --bucket "s3://mybucket" --gpg-options "--recipient 'my@email.com'"

CAUTION: BackupDriver removes the log files after sending them to Amazon S3. If you don't want that to happen, please consider using a different tool or change the code to suite your needs.

Backup mysql database

backup_driver mysql --name db_name --user db_user --password db_password --gpg-options "--recipient 'my@email.com'"  

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright (c) 2013 Vinícius Manhães Teles (@viniciusteles)
Released under the MIT License.