Recipes to clone database & public data from production server to developement machine.
Add this to your Gemfile
group :development do gem 'cap_sync' end
Add following line to your deploy.rb:
require 'cap_sync/capistrano'
> bundle exec cap sync:db
See lib/cap_sync/db.rb for list of available options.
You can set: local & remote environment, mysql dump/client command & flags, turn compression on/off, etc.
> bundle exec cap sync:data
Rsync’s local and remote folders. By default, does incremental implicit synchronization with rsync.
See lib/cap_sync/data.rb for list of available options.
-
Correctly handle multiple servers (database).
-
Envflags to modify options on the fly.
-
Win32 compability.