From 5684112c0c6788c8c8a8eed6bed7fb3428a724d4 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-5.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 4194e3ccfafcf..8533bb6664424 100644 --- a/br/use-br-command-line-tool.md +++ b/br/use-br-command-line-tool.md @@ -235,7 +235,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.