Back to Starrocks

CANCEL RESTORE

docs/en/sql-reference/sql-statements/backup_restore/CANCEL_RESTORE.md

4.1.0842 B
Original Source

CANCEL RESTORE

Cancels an ongoing RESTORE task in a specified database.

CAUTION

If a RESTORE task is canceled during the COMMIT phase, the restored data will be corrupted and inaccessible. In this case, you can only perform the RESTORE operation again and wait for the job to complete.

Syntax

SQL
CANCEL RESTORE { FROM <db_name> | FOR EXTERNAL CATALOG }

Parameters

ParameterDescription
db_nameName of the database that the RESTORE task belongs to.
FOR EXTERNAL CATALOGCancels the ongoing RESTORE task for the external catalog metadata.

Examples

Example 1: Cancels the RESTORE task under the database example_db.

SQL
CANCEL RESTORE FROM example_db;