pingcap / br

A command-line tool for distributed backup and restoration of the TiDB cluster data
https://pingcap.com/docs/dev/how-to/maintain/backup-and-restore/br/
Apache License 2.0
123 stars 102 forks source link

Support Point-in-Time Recovery (PITR) #325

Open kennytm opened 4 years ago

kennytm commented 4 years ago

Description

PITR allows user to recover the database back to any point of time.

In principle, given an initial full backup archive, and several incremental changes, it is enough to restore to a snapshot at any given time.

The PITR feature should balance between the cluster's performance when making the continuous backup, and the restore speed when doing PITR.

Task List

Sprint 1 - 100 person day

Sprint 2 - 100 person day

Category

Value

Value description

(TBD)

Value score

Workload estimation

Time

Time GanttStart: 2020-07-01 GanttDue: 2020-10-22 GanttProgress: 80%

kennytm commented 4 years ago

There are currently two solutions we may choose:

We will decide which to use after investigating viability of Solution 5.

3pointer commented 4 years ago

After discussion we have confirmed the initial requirement expectations of the PITR:

  1. Support recover to the latest available point in time(RPO close to 0).
  2. Implement Point-in-Time Recovery on the new cluster.
  3. Archive incremental logs and manage backup meta information.
  4. Revoke the misuse of DML.
  5. Support recover database level, table level.

and also confirmed the initial form of PITR:

  1. Based on current tools(BR/CDC), provide backup data recovery and record change log capabilities, Platform(DBaaS) and users implement the integration solution.
IANTHEREAL commented 4 years ago

PITR Product Ideas

Building blocks features

Management feature

Provides the entrance of PITR Management
Provides Backup Data management, manage fundamental data, include
tonyabracadabra commented 3 years ago

Hi guys, I am really interested in this feature, are there any updates on this?