0.01
No commit activity in last 3 years
No release in over 3 years
Backup rails project with backup & whenever gems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 3.4.0
~> 0.17.0
~> 1.9.0
~> 2.5.0
<= 2.5.2, >= 2.3.0
 Project Readme

Backup::Rails

Backup rails project with backup & whenever gems

Installation

Add this line to your application's Gemfile:

gem 'backup-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install backup-rails

Usage

Generate configuration files:

$ rails g backup:rails:install

And change .env file in the root of the project.

If you don't use capistrano with whenever run:

$ whenever -w

for set crontab configuration.

Restore

Run command for archive file (general.tar or general.tar.enc):

$ backup_rails restore <path to archive> <destination path> [--ssl_password=<password>]

This command restore code to destination path and database according with database.yml in code.

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