Schema:

ACCOUNT_USAGE

BACKUP_POLICIES view

This Account Usage view provides information about backup policies and their properties.

Columns

Column nameData typeDescription
IDNUMBERInternal system-generated identifier for the backup policy.
NAMEVARCHARName of the backup policy.
SCHEMA_IDNUMBERInternal/system-generated identifier for the schema of the backup policy.
SCHEMA_NAMEVARCHARSchema that the backup policy belongs to.
CATALOG_IDNUMBERInternal system-generated identifier for the database of the backup policy.
CATALOG_NAMEVARCHARDatabase that the backup policy belongs to.
SCHEDULEVARCHARSchedule for backup creation.
EXPIRE_AFTER_DAYSNUMBERDays after backup creation when backup should be expired and automatically deleted.
HAS_RETENTION_LOCKVARCHAR

Indicates whether the policy includes a retention lock. Y if the policy has a retention lock; N otherwise.

Retention lock protects backups from being deleted by anyone for the defined retention period. The retention lock also prevents the retention period from being decreased on the policy.

OWNERVARCHARName of the role that owns the backup policy.
OWNER_ROLE_TYPEVARCHARType of role that owns the backup policy. Account role or Database role.
CREATEDTIMESTAMP_LTZDate and time when the backup policy was created.
LAST_ALTEREDTIMESTAMP_LTZ

Date and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes_.

DELETEDTIMESTAMP_LTZDate and time when the backup policy was deleted.
COMMENTVARCHARComment for the backup policy.

Usage notes

  • Latency for the view may be up to 360 minutes (6 hours).
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.