SHOW BACKUPS IN BACKUP SET
statementsupportedReplication, failover & backupBusiness Critical+Lists all the backups in a backup set. Backups are available for all Snowflake editions. Backups with retention lock and backups with legal holds are available for Business Critical Edition (or higher). To inquire about upgrading, please contact Snowflake Support.
Syntax
supportedpartialnot supportednot scored
SHOW BACKUPS IN BACKUP SET <name>
[ LIMIT <rows> ]
Parameters
| Name | Required | Description |
|---|---|---|
name | Specifies the identifier for the backup set. 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. For more information, see Identifier requirements. | |
LIMIT rows | Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. The actual number of rows returned might be less than the specified limit. For example, the number of existing objects is less than the specified limit. Default: No value (no limit is applied to the output) |
Usage notes
- The command returns a maximum of ten thousand records for the specified object type, as dictated by the access privileges for the role used to execute the command. Any records above the ten thousand records limit aren’t returned, even with a filter applied. To view results for which more than ten thousand records exist, query the corresponding view (if one exists) in the Snowflake Information Schema.
Access control requirements
A role used to execute this operation must have the following privileges at a minimum: Privilege | Notes OWNERSHIP | You must have the OWNERSHIP privilege on the backup set to see the backups that it contains. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Output
Column | Description created_on | Timestamp when the backup is created. backup_id | Snowflake-generated identifier of the backup. The backup ID is a UUID value, in the format returned by the UUID_STRING function. backup_set_name | Name of backup set that contains the backup. database_name | Name of database that contains the backup set. schema_name | Name of schema that contains the backup set. expire_on | Timestamp when the backup expires. comment | Comment for the backup.