From 84806408e109d3954c3672ae7cb6f9a6334ee491 Mon Sep 17 00:00:00 2001 From: JoyinQ <56883733+Joyinqin@users.noreply.github.com> Date: Tue, 20 Apr 2021 17:47:52 +0800 Subject: [PATCH] cherry pick #5284 to release-4.0 Signed-off-by: ti-srebot --- br/use-br-command-line-tool.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/br/use-br-command-line-tool.md b/br/use-br-command-line-tool.md index f35317be1af33..3cf100cbb6605 100644 --- a/br/use-br-command-line-tool.md +++ b/br/use-br-command-line-tool.md @@ -248,7 +248,7 @@ To get the timestamp of the last backup, execute the `validate` command. For exa {{< copyable "shell-regular" >}} ```shell -LAST_BACKUP_TS=`br validate decode --field="end-version" -s local:///home/tidb/backupdata` +LAST_BACKUP_TS=`br validate decode --field="end-version" -s local:///home/tidb/backupdata | tail -n1` ``` In the above example, for the incremental backup data, BR records the data changes and the DDL operations during `(LAST_BACKUP_TS, current PD timestamp]`. When restoring data, BR first restores DDL operations and then the data.