Sha256: 7a9b73195b50882bfe11e9b8f3301d96b3e0a786e88ba00c11de449a6ff34245
Contents?: true
Size: 1.21 KB
Versions: 4
Compression:
Stored size: 1.21 KB
Contents
# Mina::DataSync You can sync your production and local database ## Requirements * `rsync` * `mina` (Duh) ## Installation Add this line to your application's Gemfile: ```ruby gem 'mina', require: false gem 'mina-data_sync', require: false ``` And then execute: $ bundle Or install it yourself as: $ gem install mina-data_sync Require it in your deploy script: ```ruby # config/deploy.rb require 'mina/data_sync' ``` ## Usage ```ruby mina data_sync:pull # pulls remote to local mina data_sync:push # pushes local to remote ``` ## Configruation configurable variables with defaults ```ruby set :database_path, "config/database.yml" set :remote_backup_path, 'tmp' set :local_backup_path, -> { ENV['DATA_SYNC_BACKUP_PATH'] || 'tmp' } set :restore_data, -> { ENV['restore'] || 'true' } # if false will not restore backup set :dump_data, -> { ENV['dump'] || 'true' } # if false will not dump and copy backup ``` ## Contributing 1. Fork it ( https://github.com/[my-github-username]/mina-data_sync/fork ) 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 a new Pull Request
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mina-data_sync-1.0.0.beta2 | README.md |
mina-data_sync-1.0.0.beta1 | README.md |
mina-data_sync-0.4.1 | README.md |
mina-data_sync-0.4.0 | README.md |