Skip to content

Commit

Permalink
cherry pick pingcap#5284 to release-5.0
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
Joyinqin authored and ti-srebot committed Apr 20, 2021
1 parent fab52aa commit 5684112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/use-br-command-line-tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5684112

Please sign in to comment.