You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* br: update docs for gc life time
* Update backup-and-restore-tool.md
* Update backup-and-restore-tool.md
* Apply suggestions from code review
* remove note format to fix a possible display issue
* make ci happy
* make ci happy
Co-authored-by: TomShawn <[email protected]>
Copy file name to clipboardexpand all lines: br/backup-and-restore-tool.md
+5-3
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ Each of the above three sub-commands might still include the following three sub
195
195
196
196
To back up the cluster data, use the `br backup` command. You can add the `full` or `table` sub-command to specify the scope of your backup operation: the whole cluster or a single table.
197
197
198
-
If the backup time might exceed the [`tikv_gc_life_time`](/garbage-collection-configuration.md#tikv_gc_life_time) configuration which is `10m0s` by default (`10m0s` means 10 minutes), increase the value of this configuration.
198
+
If the BR version is earlier than v4.0.3, and the backup duration might exceed the [`tikv_gc_life_time`](/garbage-collection-configuration.md#tikv_gc_life_time) configuration which is `10m0s` by default (`10m0s` means 10 minutes), increase the value of this configuration item.
"update mysql.tidb set variable_value='720h' where variable_name='tikv_gc_life_time'";
207
207
```
208
208
209
+
Since v4.0.3, BR automatically adapts to GC and you do not need to manually adjust the `tikv_gc_life_time` value.
210
+
209
211
### Back up all the cluster data
210
212
211
213
To back up all the cluster data, execute the `br backup full` command. To get help on this command, execute `br backup full -h` or `br backup full --help`.
@@ -265,7 +267,7 @@ br backup db \
265
267
--log-file backuptable.log
266
268
```
267
269
268
-
In the above command, `--db` specifies the name of the database to be backed up. For descriptions of other options, see [Back up all the cluster data](/br/backup-and-restore-tool.md#back-up-all-the-cluster-data).
270
+
In the above command, `--db` specifies the name of the database to be backed up. For descriptions of other options, see [Back up all the cluster data](/br/backup-and-restore-tool.md#back-up-cluster-data).
269
271
270
272
A progress bar is displayed in the terminal during the backup. When the progress bar advances to 100%, the backup is complete. Then the BR also checks the backup data to ensure data safety.
271
273
@@ -294,7 +296,7 @@ The `table` sub-command has two options:
294
296
*`--db`: specifies the database name
295
297
*`--table`: specifies the table name.
296
298
297
-
For descriptions of other options, see [Back up all cluster data](#back-up-all-the-cluster-data).
299
+
For descriptions of other options, see [Back up all cluster data](#back-up-cluster-data).
298
300
299
301
A progress bar is displayed in the terminal during the backup operation. When the progress bar advances to 100%, the backup is complete. Then the BR also checks the backup data to ensure data safety.
0 commit comments