首页 > 数据库 >Rump迁移RedisDB至DB0

Rump迁移RedisDB至DB0

时间:2023-07-14 15:00:18浏览次数:36  
标签:amd64 0.0 redis RedisDB Amz Rump DB0 com rump

下载Rump

# wget下载包
[root@ceshi-redis6 ~]# wget https://github.com/stickermule/rump/releases/download/0.0.3/rump-0.0.3-linux-amd64
--2023-07-14 14:34:20--  https://github.com/stickermule/rump/releases/download/0.0.3/rump-0.0.3-linux-amd64
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/74695306/c345121c-fed7-11e6-890a-8f84b7820512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230714%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230714T063420Z&X-Amz-Expires=300&X-Amz-Signature=e1cdc2008a546d2e36e39500fb3a652fd85d026c042759264e9be85fade76fed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=74695306&response-content-disposition=attachment%3B%20filename%3Drump-0.0.3-linux-amd64&response-content-type=application%2Foctet-stream [following]
--2023-07-14 14:34:20--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/74695306/c345121c-fed7-11e6-890a-8f84b7820512?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230714%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230714T063420Z&X-Amz-Expires=300&X-Amz-Signature=e1cdc2008a546d2e36e39500fb3a652fd85d026c042759264e9be85fade76fed&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=74695306&response-content-disposition=attachment%3B%20filename%3Drump-0.0.3-linux-amd64&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4543675 (4.3M) [application/octet-stream]
Saving to: ‘rump-0.0.3-linux-amd64’

100%[===================================================================================================>] 4,543,675   14.9MB/s   in 0.3s   

2023-07-14 14:34:21 (14.9 MB/s) - ‘rump-0.0.3-linux-amd64’ saved [4543675/4543675]

# 解压缩后,添加可执行权限。
[root@ceshi-redis6 ~]# ls
rump-0.0.3-linux-amd64
[root@ceshi-redis6 ~]# mv rump-0.0.3-linux-amd64 rump
[root@ceshi-redis6 ~]# chmod +x rump 
# 移至/usr/bin目录下变成可执行命令
[root@ceshi-redis6 ~]# mv rump /usr/bin

切换数据库写入数据(这里是实验就随便写)

使用Rump迁移

[root@ceshi-redis6 ~]# rump -from redis://[email protected]:6379/5 -to redis://[email protected]:6379/0
.Sync done

rump -from {source_redis_address} -to {target_redis_address}

{source_redis_address}
源Redis实例地址,格式为:redis://[user:password@]host:port/db,中括号部分为可选项,实例设置了密码访问时需要填写密码,格式遵循RFC 3986规范。注意用户名可为空,但冒号不能省略,例如redis://:[email protected]:6379/1。db为数据库编号,不传则默认为0。
{target_redis_address}
目标Redis实例地址,格式与from相同。

验证数据是否迁移成功

标签:amd64,0.0,redis,RedisDB,Amz,Rump,DB0,com,rump
From: https://www.cnblogs.com/kongshuo/p/17553721.html

相关文章

  • 错误:rpmdb: BDB0113 Thread/process 8709/139671674841152 failed
    rpm库报错错误:rpmdb:BDB0113Thread/process8709/139671674841152failed:BDB1507ThreaddiedinBerkeleyDBlibrary错误:db5错误(-30973)来自dbenv->failchk:BDB0087DB_RUNRECOVERY:Fatalerror,rundatabaserecovery错误:无法使用db5- (-30973)打开Packages......
  • GDB021BE05 HIEE300766R0005确保保护电气装置和人员免受直接和间接接触
    GDB021BE05HIEE300766R0005确保保护电气装置和人员免受直接和间接接触GDB021BE05HIEE300766R0005GDB021BE05HIEE300766R0005 面板保护继电器-漏电继电器(ELR)、接地故障继电器(EFR)和缺相继电器(PFR)在制造配电板时,必须有除断路器以外的一些保护方法,这些保护方法可......
  • pdb异机恢复 RMAN-06813: could not translate pluggable database pdb01
    生产环境:centos7.6Oracle19c架构:rac+adgracpdb恢复测试。昨天从数据库删除了一个pdb,连文件一块删除。今天尝试恢复已删除的pdb数据。昨天晚上也已经进行过备份。进......
  • Never Give Up! --Donald Trump
     Yearsfromnow,someofthemmaylookbackandaskthemselvieswhethertheymadetherightchoice,whethertheymadethemostoftheopportunitestheyhave......
  • yum命令提示error: rpmdb: BDB0113 Thread/process,解决方法
    最近在做RHCE的题目,yum命令装vdo时,使用yuminstall命令的时候,提示error:rpmdb:BDB0113Thread/process,具体错误如下:[root@node2~]#yuminstallvdo-yerror:rpmdb......
  • error: rpmdb: BDB0113 Thread/process 14536/140712790841152 failed: BDB1507 Threa
    yumremovedockererror:rpmdb:BDB0113Thread/process14536/140712790841152failed:BDB1507ThreaddiedinBerkeleyDBlibraryerror:db5error(-30973)fromdb......
  • KRUMPIRKO 土豆
    [COCI2015-2016#6]KRUMPIRKO题目描述\(\text{Mr.Potato}\)开了两家新店卖土豆。他买了\(N\)袋土豆,其中第\(i\)袋价值为\(c_i\),袋里有\(a_i\)个土豆。他打算把......
  • MongoDB09-索引
    MongoDB的索引用于查询(find、findOne)和排序。如果倾向于在集合中大量使用排序,那么应该根据排序的需求添加索引。如果在一个没有索引的集合中对目标字段使用sort(),并且......