Copy redis databases from one host/db to another.
Add this line to your application's Gemfile:
gem 'rcopy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rcopy
To copy a single redis db: Rcopy::Copier.new(Redis.new(...)).copy_to(Redis.new(...))
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/omadahealth/rcopy.