分类: 系统运维
2011-04-07 10:32:43
One of:
$ gem install redis-dump
There are two executables: redis-dump and redis-load.
$ redis-dump $ redis-dump -u 127.0.0.1:6371 > db_full.json $ redis-dump -u 127.0.0.1:6371 -d 15 > db_db15.json $ < db_full.json redis-load $ < db_db15.json redis-load -d 15
错误:
[root@bj-Gene233 squid]# redis-dump 127.0.0.1:6371 > 1.json
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- drydock (LoadError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/redis-dump-0.1.4/bin/redis-dump:19
from /usr/local/bin/redis-dump:19:in `load'
from /usr/local/bin/redis-dump:19
解决:gem install drydock