TiDBTiDB Docs Dash 2024

Jan 9 - Jan 12 (UTC)
Join us to improve docs and win a prize!
Sign InTry Free

Back Up and Restore TiDB Serverless Data

This document describes how to back up and restore your TiDB Serverless cluster data on TiDB Cloud.

Limitations

  • It is important to note that TiDB Serverless clusters only support in-place restoring from backups. When a restore is performed, tables in the mysql schema are also impacted. Hence, any changes made to user credentials and permissions or system variables will be rolled back to the state when the backup was taken.
  • Manual backup is not yet supported.
  • The cluster will be unavailable during the restore process, and existing connections will be terminated. You can establish new connections once the restore is complete.
  • If any TiFlash replica is enabled, the replica will be unavailable for a while after the restore because data needs to be rebuilt in TiFlash.

Backup

Automatic backups are scheduled for your TiDB Serverless clusters according to the backup setting, which can reduce your loss in extreme disaster situations.

Automatic backup

By the automatic backup, you can back up the TiDB Serverless cluster data every day at the backup time you have set. To set the backup time, perform the following steps:

  1. Navigate to the Backup page of a TiDB Serverless cluster.

  2. Click Backup Settings. This will open the Backup Settings window, where you can configure the automatic backup settings according to your requirements.

    • In Backup Time, schedule a start time for the daily cluster backup.

      If you do not specify a preferred backup time, TiDB Cloud assigns a default backup time, which is 2:00 AM in the time zone of the region where the cluster is located.

    • In Backup Retention, configure the minimum backup data retention period.

      The backup retention period must be set within a range of 7 to 90 days.

  3. Click Confirm.

Delete backup files

To delete an existing backup file, perform the following steps:

  1. Navigate to the Backup tab of a cluster.

  2. Click Delete for the backup file that you want to delete.

Restore

TiDB Serverless only supports in-place restoration. To restore your TiDB Serverless cluster from a backup, follow these steps:

  1. Navigate to the Backup page of a cluster.

  2. Click Restore. The setting window displays.

  3. In Restore Mode, you can choose to restore from a specific backup or any point in time.

    • Basic Snapshot Restore
    • Point-in-Time Restore

    To restore from a selected backup snapshot, take the following steps:

    1. Click Basic Snapshot Restore.
    2. Select the backup snapshot you want to restore to.

    This feature lets you restore a cluster to a specific state from any time within the last 90 days.

    To restore from a specific point in time, take the following steps:

    1. Click Point-in-Time Restore.
    2. Select the date and time you want to restore to.
  4. Click Restore to begin the restoration process.

    After initiating the restore process, the cluster status changes to Restoring. The cluster will be unavailable during the restore process and existing connections will be terminated. Once the restore process completes successfully, you can access the cluster as usual.

Was this page helpful?

Download PDFRequest docs changesAsk questions on Discord
Playground
New
One-stop & interactive experience of TiDB's capabilities WITHOUT registration.
Products
TiDB
TiDB Dedicated
TiDB Serverless
Pricing
Get Demo
Get Started
© 2024 PingCAP. All Rights Reserved.
Privacy Policy.