From 352d88a51f777db650866c66912806db7605e07f Mon Sep 17 00:00:00 2001 From: Joyinqin Date: Mon, 12 Apr 2021 10:56:16 +0800 Subject: [PATCH] Update use-br-command-line-tool.md --- 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.