tcb db backup restore
Restore a backup of the cluster.
Usage
tcb db backup restore [options]
Parameters
| Parameter | Required | Description | Default |
|---|---|---|---|
--strategy <strategy> | Yes | Restore strategy: snapRollback by backup, timeRollback by point in time | — |
--backupId <id> | Depends | Backup file ID, required with snapRollback | — |
--expectTime <time> | Depends | Target time, required with timeRollback, format 2026-03-10 14:00:00 | — |
--instanceId <id> | No | Instance 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.
Related Commands
- List backups: look up
--backupId - Create a backup
- Document database restore