Skip to main content

Backup and Restore

taosX provides logical backup and restore for databases and tables: subscription-based backups periodically save changes to a database or supertable, while query-based table backups save specified child tables or regular tables. Full cluster backups are performed by the TSDB engine. taosdump is a separate tool. Neither belongs to taosX.

info

For complete backup plans, S3 offloading, restoration to a backup point, off-site restoration, table backups, restore drills and verification, and common error handling, see Data Backup and Restoration in the operations guide. This page covers only the scope of taosX and checks before and after restoration, without repeating the procedures.

1. Before Restoration​

  1. Identify the objects to restore, backup point, target cluster, and permitted write scope. Use an isolated environment or an approved empty target database.
  2. Verify the complete chain from the initial backup point to the target backup point, layout marker, file inventory, and version compatibility. Obtain missing files before proceeding; do not skip errors.
  3. After restoration, verify objects, schema, time range, values, and tags. Task completion or an exit code of 0 alone does not prove a successful restore.

2. Further Reading​

danger

Restoration can modify target data. Do not test restore commands against an existing business database without approval from the business owner, delete original backups, or use restoration as a substitute for diagnosis.