Skip to main content

tcb db backup restore

Restore a backup of the cluster.

Usage​

tcb db backup restore [options]

Parameters​

ParameterRequiredDescriptionDefault
--strategy <strategy>YesRestore strategy: snapRollback by backup, timeRollback by point in time—
--backupId <id>DependsBackup file ID, required with snapRollback—
--expectTime <time>DependsTarget time, required with timeRollback, format 2026-03-10 14:00:00—
--instanceId <id>NoInstance ID—

Examples​

# Restore by backup ID
tcb db backup restore \
--strategy snapRollback \
--backupId backup-xxx \
--instanceId inst-xxx \
-e my-env-id

# Restore to a point in time
tcb db backup restore \
--strategy timeRollback \
--expectTime "2026-03-10 14:00:00" \
--instanceId inst-xxx \
-e my-env-id

⚠️ A restore overwrites the current data of the instance, confirm the target time and backup first.