Skip to content

一个简单的 ETCD 导出、导入工具,最简单的备份和还原工具; Export/Import/Edit etcd directory as JSON, easy way to backup etcd.

Notifications You must be signed in to change notification settings

forcemeter/etcd-json-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

etcd-json-converter 一个简单的 ETCD 导出、导入工具,最简单的备份和还原工具

备份,只需要单节点执行

etcd-json-converter export \
--endpoint=10.10.0.3:2379,10.10.0.4:2379,10.10.0.5:2379 \
--file=/tmp/output.json
etcd-json-converter export \
--endpoint=10.10.0.3:2379,10.10.0.4:2379,10.10.0.5:2379 \
--limit=0 --prefix=/your/prefix \
--file=/tmp/output.json

还原,只需要单节点执行

etcd-json-converter import \
--endpoint=10.10.0.3:2379,10.10.0.4:2379,10.10.0.5:2379 \
--file=/tmp/input.json

可以在导入前对文件进行替换,方便进行迁移

sed -i 's/baidu.com/google.com/g' /tmp/input.json

About

一个简单的 ETCD 导出、导入工具,最简单的备份和还原工具; Export/Import/Edit etcd directory as JSON, easy way to backup etcd.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published