From c1a6e9ffb22d1fcd10a99b99403e1ef79a8b9ec6 Mon Sep 17 00:00:00 2001 From: "StarsL.cn" Date: Tue, 15 Nov 2022 05:05:52 +0800 Subject: [PATCH] =?UTF-8?q?Update=20Consul=E9=83=A8=E7=BD=B2=E8=AF=B4?= =?UTF-8?q?=E6=98=8E.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Consul部署说明.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/Consul部署说明.md b/docs/Consul部署说明.md index 6c96352..0c48b2e 100644 --- a/docs/Consul部署说明.md +++ b/docs/Consul部署说明.md @@ -55,3 +55,9 @@ echo 13 > acl-bootstrap-reset # 重新创建一个global-management Token consul acl bootstrap ``` + +### consul kv 备份还原 +``` +consul kv export --http-addr=http://127.0.0.1:8500 -token=admin-token '' > consul_kv_bak.json +consul kv import --http-addr=http://127.0.0.1:8500 -token=admin-token @consul_kv_bak.json +```