Docs
Skip to content

Terraform provider

Backups_

Configure Appwrite backup policies with Terraform where your plan supports them.

1 min read

Raw

The appwrite_backup_policy resource configures backup policies for supported resources. Availability depends on your Appwrite Cloud plan or self-hosted setup.

See the Terraform Registry: backup_policy. The provider repository lists the full argument reference.

Resource

ResourcePurpose
appwrite_backup_policyConfigure backup policies for supported resources

Policies use schedule (CRON), retention (days), and services (for example ["databases"]). Omit resource_id to cover all databases in the project, or set resource_id to a specific database ID (often appwrite_tablesdb.*.id) to back up one database.

Example

Terraform
resource "appwrite_backup_policy" "daily" {
name = "daily database backup"
services = ["databases"]
retention = 7
schedule = "0 2 * * *"
}
resource "appwrite_tablesdb" "main" {
name = "main"
}
resource "appwrite_backup_policy" "production" {
name = "production database backup"
services = ["databases"]
resource_id = appwrite_tablesdb.main.id
retention = 14
schedule = "0 */6 * * *"
}

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.