Help Center> GaussDB> User Guide> Backups and Restorations> Restoring Data to a Specific Point in Time

Restoring Data to a Specific Point in Time

Scenarios

You can use an automated backup to restore a DB instance to a specified point in time.

Do not run the reset master command on DB instances within their lifecycle. Otherwise, an exception may occur during the point-in-time restore.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click Service List. Under Database, click GaussDB.
  4. On the Instance Management page, click the target DB instance.
  5. In the navigation pane on the left, choose Backups & Restorations. On the displayed page, click Restore to Point in Time.
  6. Select a time range, select or enter a time point within the acceptable range, and restore data to a new DB instance. Then, click OK. If you have enabled the operation protection function, click Start verification in the Restore to Point in Time dialog box. On the displayed page, click Send Code, enter the obtained verification code, and click Verify.

    For details about how to enable operation protection, see the Identity and Access Management User Guide.

    Figure 1 Restoring to a point in time

  7. On the displayed page, set required parameters and click Next

    • The region, DB engine and version of the new DB instance are the same as those of the original DB instance and cannot be changed.
    • The database port is 3306 by default.
    • Other settings are the same as those of the original DB instance by default and can be modified. For details, see Buying a DB Instance.

  8. View the restoration result. The result depends on which restoration method was selected:

    A new DB instance is created using the backup data. The instance status changes from Creating to Available.

    The new DB instance is independent from the original one. If you want to offload read pressure on the primary node, create one or more read replicas for the new DB instance.

    After the restoration, the system will perform a full backup.