From 47f001c9c986b2fcd3e3d31b98e2474155964b59 Mon Sep 17 00:00:00 2001 From: glkappe Date: Wed, 29 Apr 2020 17:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E5=A2=9E=E5=8A=A0=E7=B1=BB?= =?UTF-8?q?=E4=BC=BC=E5=AE=9E=E4=BE=8B=EF=BC=8C=E6=AF=94=E7=BD=97=E5=88=97?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=9B=B4=E7=9B=B4=E8=A7=82=E4=BA=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session2/chapter2/br-in-action.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/session2/chapter2/br-in-action.md b/session2/chapter2/br-in-action.md index 01e0b4c51d..e2e8613150 100644 --- a/session2/chapter2/br-in-action.md +++ b/session2/chapter2/br-in-action.md @@ -130,6 +130,11 @@ BR 命令包括备份,恢复两个操作,而备份,恢复又单独针对 ### 6. 全库备份与恢复 +```br backup (full | db | table) \ + -s $BACKUP_PATH --pd $PD_ADDR \ + [--db $DB] [--table $TABLE] +``` + 参考命令: ```bash @@ -164,6 +169,11 @@ MySQL [br_test]> drop table br_table; > 注意:恢复时候,每个 TiKV 节点都需要访问到所有备份文件,如果不是共享存储,需要手动复制所有备份文件到所有节点 +```br restore (full | db | table) \ + -s $BACKUP_PATH --pd $PD_ADDR \ + [--db $DB] [--table $TABLE] +``` + ``` bin/br restore full --pd "192.168.122.101:2379" --storage "local:///data_nfs1/backup" ```