Skip to content

Commit accd387

Browse files
author
benschermel
committed
update gem reference
1 parent 2c38667 commit accd387

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

utils/redis-copy.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# keydb-copy.rb - Copyright (C) 2009-2010 Salvatore Sanfilippo
1+
# redis-copy.rb - Copyright (C) 2009-2010 Salvatore Sanfilippo
22
# BSD license, See the COPYING file for more information.
33
#
4-
# Copy the whole dataset from one Redis instance to another one
4+
# Copy the whole dataset from one KeyDB/Redis instance to another one
55
#
66
# WARNING: this utility is deprecated and serves as a legacy adapter
7-
# for the more-robust keydb-copy gem.
7+
# for the more-robust redis-copy gem.
88

99
require 'shellwords'
1010

1111
def redisCopy(opts={})
1212
src = "#{opts[:srchost]}:#{opts[:srcport]}"
1313
dst = "#{opts[:dsthost]}:#{opts[:dstport]}"
14-
`keydb-copy #{src.shellescape} #{dst.shellescape}`
14+
`redis-copy #{src.shellescape} #{dst.shellescape}`
1515
rescue Errno::ENOENT
16-
$stderr.puts 'This utility requires the keydb-copy executable',
17-
'from the keydb-copy gem on https://rubygems.org',
18-
'To install it, run `gem install keydb-copy`.'
16+
$stderr.puts 'This utility requires the redis-copy executable',
17+
'from the redis-copy gem on https://rubygems.org',
18+
'To install it, run `gem install redis-copy`.'
1919
exit 1
2020
end
2121

22-
$stderr.puts "This utility is deprecated. Use the keydb-copy gem instead."
22+
$stderr.puts "This utility is deprecated. Use the redis-copy gem instead."
2323
if ARGV.length != 4
24-
puts "Usage: keydb-copy.rb <srchost> <srcport> <dsthost> <dstport>"
24+
puts "Usage: redis-copy.rb <srchost> <srcport> <dsthost> <dstport>"
2525
exit 1
2626
end
2727
puts "WARNING: it's up to you to FLUSHDB the destination host before to continue, press any key when ready."

0 commit comments

Comments
 (0)