Skip to content

backup rails project based on backup & whenever gems

License

Notifications You must be signed in to change notification settings

jalevin/backup-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

backup rails project based on backup & whenever gems

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%