Skip to content

Deprecate utils/redis-copy.rb in favor of redis-copy gem#1365

Merged
antirez merged 1 commit intoredis:unstablefrom
yaauie:deprecate-redis-copy-script
Nov 6, 2013
Merged

Deprecate utils/redis-copy.rb in favor of redis-copy gem#1365
antirez merged 1 commit intoredis:unstablefrom
yaauie:deprecate-redis-copy-script

Conversation

@yaauie
Copy link
Contributor

@yaauie yaauie commented Nov 6, 2013

When needing to do a semi-live redis copy recently from db1 on one box to db3 on another, I stumbled across the utils/redis-copy.rb script and ended up working it into a well-tested gem that was able to handle all of the datatypes and different db numbers.

The gem has since evolved to support DUMP/RESTORE (iff supported by both source and destination redis processes), optional verification, and even will support SCAN for key-emitting in the near future. As such, I think it is a good time to deprecate the utils/redis-copy.rb.

antirez added a commit that referenced this pull request Nov 6, 2013
Deprecate utils/redis-copy.rb in favor of redis-copy gem
@antirez antirez merged commit b5ec3ed into redis:unstable Nov 6, 2013
@antirez
Copy link
Contributor

antirez commented Nov 6, 2013

Hello, I merged since I'm sure your version is better, however now that we are in 2.8 land, we have both SCAN and MIGRATE (or DUMP + RESTORE if we want more control) to implement the same command in a more reliable and probably two order of magnitude fasters! But for 2.6, the old approach is still needed.

Thanks for your work.

@yaauie
Copy link
Contributor Author

yaauie commented Nov 6, 2013

@antirez yep! The goal of the gem is to be an abstraction across the migration features, using the best features possible and falling back gracefully to slower/less-efficient methods.

@yaauie yaauie deleted the deprecate-redis-copy-script branch November 6, 2013 09:14
antirez added a commit that referenced this pull request Nov 6, 2013
@antirez
Copy link
Contributor

antirez commented Nov 6, 2013

Cool, thanks!

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants