DESCRIBE BACKUP POLICY¶
Describes a specific backup policy.
DESCRIBE can be abbreviated to DESC.
Syntax¶
DESC[RIBE] BACKUP POLICY <name>
Parameters¶
nameSpecifies the identifier for the backup policy to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
Usage notes¶
To post-process the output of this command, you can use the pipe operator (
->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.
When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column
type, specifySELECT "type".You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.
Note
The backup policy is an object that’s inside a specific schema and database. Therefore, the policy gets replicated, dropped or undropped, and so on, when those operations are performed on the schema and database that contain it. If you can’t drop the backup policy because it’s associated with any backup sets, then you also can’t drop the schema or database containing the policy.
To determine whether a backup policy is associated with any backup sets, use the SHOW BACKUP SETS command.
Output¶
Column |
Description |
|---|---|
|
Timestamp backup policy was created. |
|
Name of backup policy. |
|
Name of database that contains the backup policy. |
|
Name of schema that contains the backup policy. |
|
Name of the role with the OWNERSHIP privilege on the backup policy. |
|
Comment for backup policy. |
|
Schedule for backup creation. |
|
Number of days after backup creation when backup expires. |
|
Indicates whether the policy includes a retention lock.
For more information, see Retention lock. |
|
Name of the role with the OWNERSHIP privilege on the backup set. |
|
Type of role with the OWNERSHIP privilege on the backup policy. |
Examples¶
Describe a backup policy:
DESC BACKUP POLICY my_backup_policy;