From 1665a953736de3e2f96d629a11ffb79b7f772495 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 20:57:02 +0800 Subject: [PATCH 01/11] replace loader by lightning --- TOC.md | 2 +- .../backup-and-restore/mydumper-lightning.md | 97 ++++++++++ .../backup-and-restore/mydumper-loader.md | 177 ------------------ reference/tools/br/br.md | 2 +- 4 files changed, 99 insertions(+), 179 deletions(-) create mode 100644 how-to/maintain/backup-and-restore/mydumper-lightning.md delete mode 100644 how-to/maintain/backup-and-restore/mydumper-loader.md diff --git a/TOC.md b/TOC.md index 5f37347f3b5b0..0c44fc78bf183 100644 --- a/TOC.md +++ b/TOC.md @@ -84,7 +84,7 @@ + Maintain - [Common Ansible Operations](/how-to/deploy/orchestrated/ansible-operations.md) + Backup and Restore - - [Use `mydumper` and `loader`](/how-to/maintain/backup-and-restore/mydumper-loader.md) + - [Use `mydumper` and `TiDB Lightning`](/how-to/maintain/backup-and-restore/mydumper-lightning.md) - [Use BR](/reference/tools/br/br.md) - [BR Usage Scenarios](/reference/tools/br/use-cases.md) + Identify Abnormal Queries diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md new file mode 100644 index 0000000000000..aa77d1dbdc088 --- /dev/null +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -0,0 +1,97 @@ +--- +title: Use `Mydumper` and `TiDB Lightning` for Backup and Restoration +category: how-to +aliases: ['/docs-cn/how-to/maintain/backup-and-restore/'] +--- + +# Use `Mydumper` and `TiDB Lightning` for Data Backup and Restoration + +This document describes how to take full back up and restore the data of TiDB using Mydumper and TiDB Lightning. For incremental backup and restoration, refer to [TiDB Binlog](/reference/tidb-binlog/overview.md). + +Suppose that the TiDB service information is as follows: + +|Name|Address|Port|User|Password| +|----|-------|----|----|--------| +|TiDB|127.0.0.1|4000|root|*| + +Use the following tools for data backup and restoration: + +- [Mydumper](/reference/tools/mydumper.md): to export data from TiDB +- [TiDB Lightning](/reference/tools/tidb-lightning/overview.md): to import data into TiDB + +## Full backup and restoration using `Mydumper`/`TiDB Lightning` + +`mydumper` is a powerful data backup tool. For more information, see [`maxbube/mydumper`](https://github.com/maxbube/mydumper). + +Use [Mydumper](/reference/tools/mydumper.md) to export data from TiDB and use [TiDB Lightning](/reference/tools/tidb-lightning/overview.md) to import data into TiDB. + +> **Note:** +> +> It is recommended to download [Mydumper](/reference/tools/mydumper.md) from the PingCAP website, since the R&D team adapted `mydumper` for TiDB. It is not recommended to use `mysqldump` which is much slower for both backup and restoration. + +### Best practices for full backup and restoration using `Mydumper`/`TiDB Lightning` + +To quickly backup and restore data (especially large amounts of data), refer to the following recommendations: + +* Keep the exported data file as small as possible. It is recommended to use the `-F` parameter to set the file size. If you use TiDB Lightning to restore data, it is recommended that you set the value of `-F` to `256` (MB). If you use `loader` for restoration, it is recommended to set the value to `64` (MB). + +## Backup data from TiDB + +Use `mydumper` to backup data from TiDB. + +{{< copyable "shell-regular" >}} + +```bash +./bin/mydumper -h 127.0.0.1 -P 4000 -u root -t 32 -F 256 -B test -T t1,t2 --skip-tz-utc -o ./var/test +``` + +In this command, + +`-B test` means that the data is exported from the `test` database. +`-T t1,t2` means that only the `t1` and `t2` tables are exported. +`-t 32` means that 32 threads are used to export the data. +`-F 256` means that a table is partitioned into chunks, and one chunk is 256MB. +`--skip-tz-utc` means to ignore the inconsistency of time zone setting between MySQL and the data exporting machine and to disable automatic conversion. + +If `mydumper` returns the following error: + +``` +** (mydumper:27528): CRITICAL **: 13:25:09.081: Could not read data from testSchema.testTable: GC life time is shorter than transaction duration, transaction starts at 2019-08-05 21:10:01.451 +0800 CST, GC safe point is 2019-08-05 21:14:53.801 +0800 CST +``` + +Then execute two more commands: + +1. Before executing the `mydumper` command, query the [GC](/reference/garbage-collection/overview.md) values of the TiDB cluster and adjust it to a suitable value using the MySQL client: + + {{< copyable "sql" >}} + + ```sql + SELECT * FROM mysql.tidb WHERE VARIABLE_NAME = 'tikv_gc_life_time'; + ``` + + ``` + +-----------------------+------------------------------------------------------------------------------------------------+ + | VARIABLE_NAME | VARIABLE_VALUE | + +-----------------------+------------------------------------------------------------------------------------------------+ + | tikv_gc_life_time | 10m0s | + +-----------------------+------------------------------------------------------------------------------------------------+ + 1 rows in set (0.02 sec) + ``` + + {{< copyable "sql" >}} + + ```sql + update mysql.tidb set VARIABLE_VALUE = '720h' where VARIABLE_NAME = 'tikv_gc_life_time'; + ``` + +2. After running the `mydumper` command, adjust GC value of the TiDB cluster to its original value in step 1. + + {{< copyable "sql" >}} + + ```sql + update mysql.tidb set VARIABLE_VALUE = '10m' where VARIABLE_NAME = 'tikv_gc_life_time'; + ``` + +## Restore data into TiDB + +To restore data into TiDB, use TiDB Lightning to import the exported data. See [TiDB Lightning Tutorial](/reference/tools/tidb-lightning/tidb-backend.md). \ No newline at end of file diff --git a/how-to/maintain/backup-and-restore/mydumper-loader.md b/how-to/maintain/backup-and-restore/mydumper-loader.md deleted file mode 100644 index 0078acb2099a5..0000000000000 --- a/how-to/maintain/backup-and-restore/mydumper-loader.md +++ /dev/null @@ -1,177 +0,0 @@ ---- -title: Use `mydumper`and `loader` to Back up and Restore Data -summary: Learn how to back up and restore the data of TiDB using `mydumper` and `loader`. -category: how-to -aliases: ['/docs/dev/how-to/maintain/backup-and-restore/'] ---- - -# Use `mydumper` and `loader` to Back up and Restore Data - -This document describes how to back up and restore the data of TiDB using `mydumper` and `loader`. Currently, this document only covers full backup and restoration. - -Suppose that the TiDB service information is as follows: - -|Name|Address|Port|User|Password| -|:----:|:-------:|:----:|:----:|:------:| -|TiDB|127.0.0.1|4000|root|*| - -Use the following tools for data backup and restoration: - -- `mydumper`: to export data from TiDB -- `loader`: to import data into TiDB - -## Download TiDB toolset (Linux) - -1. Download the tool package: - - {{< copyable "shell-regular" >}} - - ```bash - wget https://download.pingcap.org/tidb-enterprise-tools-latest-linux-amd64.tar.gz && \ - wget https://download.pingcap.org/tidb-enterprise-tools-latest-linux-amd64.sha256 - ``` - -2. Check the file integrity. If the result is fine, the file is correct. - - {{< copyable "shell-regular" >}} - - ```bash - sha256sum -c tidb-enterprise-tools-latest-linux-amd64.sha256 - ``` - -3. Extract the package: - - {{< copyable "shell-regular" >}} - - ```bash - tar -xzf tidb-enterprise-tools-latest-linux-amd64.tar.gz && \ - cd tidb-enterprise-tools-latest-linux-amd64 - ``` - -## Full backup and restoration using `mydumper`/`loader` - -Use [`mydumper`](/reference/tools/mydumper.md) to export data from TiDB and [`loader`](/reference/tools/loader.md) to import data into TiDB. - -> **Note:** -> -> Use `mydumper` from the Enterprise Tools package, and not the `mydumper` provided by your operating system's package manager. The upstream version of `mydumper` does not yet handle TiDB correctly ([#155](https://github.com/maxbube/mydumper/pull/155)). It is also not recommended to use `mysqldump` which is much slower for both backup and restoration. - -### Best practices for full backup and restoration using `mydumper`/`loader` - -To quickly backup and restore data (especially large amounts of data), refer to the following recommendations: - -- Keep the exported data file as small as possible and it is recommended to keep it smaller than 64M. Use the `-F` parameter to set the value. -- Adjust the `-t` parameter of `loader` based on the number and the load of TiKV instances. It is recommended that you set the value of `-t` to `32`. If the load of TiKV is too high and the `backoffer.maxSleep 15000ms is exceeded` log is displayed many times, decrease the value of `-t`; otherwise, increase the value. - -### Backup data from TiDB - -Use `mydumper` to backup data from TiDB. - -{{< copyable "shell-regular" >}} - -```bash -./bin/mydumper -h 127.0.0.1 -P 4000 -u root -t 32 -F 64 -B test -T t1,t2 --skip-tz-utc -o ./var/test -``` - -In this command, - -- `-B test` means that the data is exported from the `test` database. -- `-T t1,t2` means that only the `t1` and `t2` tables are exported. -- `-t 32` means that 32 threads are used to export the data. -- `-F 64` means that a table is partitioned into chunks and one chunk is 64MB. -- `--skip-tz-utc` means to ignore the inconsistency of time zone setting between MySQL and the data exporting machine and to disable automatic conversion. - -If `mydumper` returns the following error: - -``` -** (mydumper:27528): CRITICAL **: 13:25:09.081: Could not read data from testSchema.testTable: GC life time is shorter than transaction duration, transaction starts at 2019-08-05 21:10:01.451 +0800 CST, GC safe point is 2019-08-05 21:14:53.801 +0800 CST -``` - -Then execute two more commands: - -1. Before executing the `mydumper` command, query the GC values of the TiDB cluster and adjust it to a suitable value using the MySQL client: - - ```sql - mysql> SELECT * FROM mysql.tidb WHERE VARIABLE_NAME = 'tikv_gc_life_time'; - +-----------------------+------------------------------------------------------------------------------------------------+ - | VARIABLE_NAME | VARIABLE_VALUE | - +-----------------------+------------------------------------------------------------------------------------------------+ - | tikv_gc_life_time | 10m0s | - +-----------------------+------------------------------------------------------------------------------------------------+ - 1 rows in set (0.02 sec) - - mysql> update mysql.tidb set VARIABLE_VALUE = '720h' where VARIABLE_NAME = 'tikv_gc_life_time'; - ``` - -2. After finishing running the `mydumper` command, restore the adjusted GC value (`720h`) of the TiDB cluster to its original value (`10m0s`) in step 1. - - {{< copyable "sql" >}} - - ```sql - update mysql.tidb set VARIABLE_VALUE = '10m' where VARIABLE_NAME = 'tikv_gc_life_time'; - ``` - -### Restore data into TiDB - -To restore data into TiDB, use `loader` to import the previously exported data. See [Loader instructions](/reference/tools/loader.md) for more information. - -{{< copyable "shell-regular" >}} - -```bash -./bin/loader -h 127.0.0.1 -u root -P 4000 -t 32 -d ./var/test -``` - -After the data is imported, you can view the data in TiDB using the MySQL client: - -{{< copyable "shell-regular" >}} - -```shell -mysql -h127.0.0.1 -P4000 -uroot -``` - -{{< copyable "sql" >}} - -```sql -mysql> show tables; -``` - -``` -+----------------+ -| Tables_in_test | -+----------------+ -| t1 | -| t2 | -+----------------+ -``` - -{{< copyable "sql" >}} - -```sql -mysql> select * from t1; -``` - -``` -+----+------+ -| id | age | -+----+------+ -| 1 | 1 | -| 2 | 2 | -| 3 | 3 | -+----+------+ -``` - -{{< copyable "sql" >}} - -```sql -mysql> select * from t2; -``` - -``` -+----+------+ -| id | name | -+----+------+ -| 1 | a | -| 2 | b | -| 3 | c | -+----+------+ -``` diff --git a/reference/tools/br/br.md b/reference/tools/br/br.md index af829f45069e1..806641f724b3f 100644 --- a/reference/tools/br/br.md +++ b/reference/tools/br/br.md @@ -7,7 +7,7 @@ aliases: ['/docs/dev/how-to/maintain/backup-and-restore/br/'] # Use BR to Back up and Restore Data -Backup & Restore (BR) is a command-line tool for distributed backup and restoration of the TiDB cluster data. Compared with [`mydumper`/`loader`](/how-to/maintain/backup-and-restore/mydumper-loader.md), BR is more suitable for scenarios of huge data volume. This document describes the BR command line, detailed use examples, best practices, restrictions, and introduces the implementation principles of BR. +Backup & Restore (BR) is a command-line tool for distributed backup and restoration of the TiDB cluster data. Compared with [`mydumper`/`loader`](/how-to/maintain/backup-and-restore/mydumper-lightning.md), BR is more suitable for scenarios of huge data volume. This document describes the BR command line, detailed use examples, best practices, restrictions, and introduces the implementation principles of BR. ## Usage restrictions From cf0887ecf39ffb3e2278f071f88ae4f61a3c0700 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:51:55 +0800 Subject: [PATCH 02/11] Update TOC.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- TOC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TOC.md b/TOC.md index 0c44fc78bf183..00558ae39f0e0 100644 --- a/TOC.md +++ b/TOC.md @@ -84,7 +84,7 @@ + Maintain - [Common Ansible Operations](/how-to/deploy/orchestrated/ansible-operations.md) + Backup and Restore - - [Use `mydumper` and `TiDB Lightning`](/how-to/maintain/backup-and-restore/mydumper-lightning.md) + - [Use Mydumper and TiDB Lightning](/how-to/maintain/backup-and-restore/mydumper-lightning.md) - [Use BR](/reference/tools/br/br.md) - [BR Usage Scenarios](/reference/tools/br/use-cases.md) + Identify Abnormal Queries From 1768ae42fbf0e27245e7000b197f77f6518cf9d6 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:52:07 +0800 Subject: [PATCH 03/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index aa77d1dbdc088..bdefcd155e5be 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -1,5 +1,5 @@ --- -title: Use `Mydumper` and `TiDB Lightning` for Backup and Restoration +title: Use Mydumper and TiDB Lightning for Backup and Restoration category: how-to aliases: ['/docs-cn/how-to/maintain/backup-and-restore/'] --- @@ -94,4 +94,4 @@ Then execute two more commands: ## Restore data into TiDB -To restore data into TiDB, use TiDB Lightning to import the exported data. See [TiDB Lightning Tutorial](/reference/tools/tidb-lightning/tidb-backend.md). \ No newline at end of file +To restore data into TiDB, use TiDB Lightning to import the exported data. See [TiDB Lightning Tutorial](/reference/tools/tidb-lightning/tidb-backend.md). From dc8a91600e35f36b340ecfec5f35a12cb0b81062 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:53:59 +0800 Subject: [PATCH 04/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index bdefcd155e5be..61c20fb3542b6 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -1,7 +1,7 @@ --- title: Use Mydumper and TiDB Lightning for Backup and Restoration category: how-to -aliases: ['/docs-cn/how-to/maintain/backup-and-restore/'] +aliases: ['/docs/dev/how-to/maintain/backup-and-restore/'] --- # Use `Mydumper` and `TiDB Lightning` for Data Backup and Restoration From 6e8dd8025b0b467e62fd7dd05e46dce7124706a4 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:54:10 +0800 Subject: [PATCH 05/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index 61c20fb3542b6..fe7bda8daa71d 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -27,7 +27,7 @@ Use [Mydumper](/reference/tools/mydumper.md) to export data from TiDB and use [T > **Note:** > -> It is recommended to download [Mydumper](/reference/tools/mydumper.md) from the PingCAP website, since the R&D team adapted `mydumper` for TiDB. It is not recommended to use `mysqldump` which is much slower for both backup and restoration. +> It is recommended to download [Mydumper](/reference/tools/mydumper.md) from the PingCAP website, because the R&D team has adapted `mydumper` for TiDB. It is not recommended to use `mysqldump` which is much slower for both backup and restoration. ### Best practices for full backup and restoration using `Mydumper`/`TiDB Lightning` From 17927bcd26471194c34f5dbed736f3070e7e3eb4 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:55:00 +0800 Subject: [PATCH 06/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index fe7bda8daa71d..0e76ab748de5b 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -29,7 +29,7 @@ Use [Mydumper](/reference/tools/mydumper.md) to export data from TiDB and use [T > > It is recommended to download [Mydumper](/reference/tools/mydumper.md) from the PingCAP website, because the R&D team has adapted `mydumper` for TiDB. It is not recommended to use `mysqldump` which is much slower for both backup and restoration. -### Best practices for full backup and restoration using `Mydumper`/`TiDB Lightning` +### Best practices for full backup and restoration using Mydumper/TiDB Lightning To quickly backup and restore data (especially large amounts of data), refer to the following recommendations: From 9b03826af77b8a7c3b8828490c7a6afffc6e53a2 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:55:09 +0800 Subject: [PATCH 07/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index 0e76ab748de5b..cbb8300e387b1 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -19,7 +19,7 @@ Use the following tools for data backup and restoration: - [Mydumper](/reference/tools/mydumper.md): to export data from TiDB - [TiDB Lightning](/reference/tools/tidb-lightning/overview.md): to import data into TiDB -## Full backup and restoration using `Mydumper`/`TiDB Lightning` +## Full backup and restoration using Mydumper/TiDB Lightning `mydumper` is a powerful data backup tool. For more information, see [`maxbube/mydumper`](https://github.com/maxbube/mydumper). From a326e38fa89ceaae16782f23669b47a25ca17eff Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:55:17 +0800 Subject: [PATCH 08/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index cbb8300e387b1..e2761a5bce45a 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -4,7 +4,7 @@ category: how-to aliases: ['/docs/dev/how-to/maintain/backup-and-restore/'] --- -# Use `Mydumper` and `TiDB Lightning` for Data Backup and Restoration +# Use Mydumper and TiDB Lightning for Data Backup and Restoration This document describes how to take full back up and restore the data of TiDB using Mydumper and TiDB Lightning. For incremental backup and restoration, refer to [TiDB Binlog](/reference/tidb-binlog/overview.md). From d924f76e2d56b2bd6788275c7fff0e630b4a0c58 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:55:38 +0800 Subject: [PATCH 09/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index e2761a5bce45a..b53106c5954d8 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -11,7 +11,7 @@ This document describes how to take full back up and restore the data of TiDB us Suppose that the TiDB service information is as follows: |Name|Address|Port|User|Password| -|----|-------|----|----|--------| +|:----|:-------|:----|:----|:--------| |TiDB|127.0.0.1|4000|root|*| Use the following tools for data backup and restoration: From 6ea7c5762e7a66825ecadaa8146313d26a539dc5 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 21:56:10 +0800 Subject: [PATCH 10/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index b53106c5954d8..e28338d7a106f 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -6,7 +6,7 @@ aliases: ['/docs/dev/how-to/maintain/backup-and-restore/'] # Use Mydumper and TiDB Lightning for Data Backup and Restoration -This document describes how to take full back up and restore the data of TiDB using Mydumper and TiDB Lightning. For incremental backup and restoration, refer to [TiDB Binlog](/reference/tidb-binlog/overview.md). +This document describes how to perform full backup and restoration of the TiDB data using Mydumper and TiDB Lightning. For incremental backup and restoration, refer to [TiDB Binlog](/reference/tidb-binlog/overview.md). Suppose that the TiDB service information is as follows: From a8a2914d644e7ce9048b06d2320d72ff4f53d722 Mon Sep 17 00:00:00 2001 From: toutdesuite Date: Wed, 11 Mar 2020 22:01:43 +0800 Subject: [PATCH 11/11] Update how-to/maintain/backup-and-restore/mydumper-lightning.md Co-Authored-By: TomShawn <41534398+TomShawn@users.noreply.github.com> --- how-to/maintain/backup-and-restore/mydumper-lightning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to/maintain/backup-and-restore/mydumper-lightning.md b/how-to/maintain/backup-and-restore/mydumper-lightning.md index e28338d7a106f..13850dc187b4e 100644 --- a/how-to/maintain/backup-and-restore/mydumper-lightning.md +++ b/how-to/maintain/backup-and-restore/mydumper-lightning.md @@ -21,7 +21,7 @@ Use the following tools for data backup and restoration: ## Full backup and restoration using Mydumper/TiDB Lightning -`mydumper` is a powerful data backup tool. For more information, see [`maxbube/mydumper`](https://github.com/maxbube/mydumper). +`mydumper` is a powerful data backup tool. For more information, refer to [`maxbube/mydumper`](https://github.com/maxbube/mydumper). Use [Mydumper](/reference/tools/mydumper.md) to export data from TiDB and use [TiDB Lightning](/reference/tools/tidb-lightning/overview.md) to import data into TiDB.