> For the complete documentation index, see [llms.txt](https://docs.snowddl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snowddl.com/basic/yaml-configs/backup-policy.md).

# BACKUP POLICY

Config path: `/<database>/<schema>/backup_policy/<name>.yaml`

Example:

```yaml
schedule: 90 minutes
expire_after_days: 30
comment: My snapshot policy
```

## Schema

* **schedule** (str) - schedule for creating backups of an object
* **expire\_after\_days** (int) - number of days until a backup expires
* **comment** (str)

## Links

* [CREATE BACKUP POLICY](https://docs.snowflake.com/en/sql-reference/sql/create-backup-policy)
* [ALTER BACKUP POLICY](https://docs.snowflake.com/en/sql-reference/sql/alter-backup-policy)
* [SHOW BACKUP POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-backup-policies)
* [Parser & JSON Schema (GitHub)](https://github.com/littleK0i/SnowDDL/blob/master/snowddl/parser/backup_policy.py)
