Skip to main content

selectel_cloudbackup_plan_v2

Last update:
For your information

These instructions are a copy of the Terraform provider's Selectel Terraform documentation in the Terraform Registry.

Creates and manages a backup plan for Selectel Backups in the Cloud.For more information about backup plans, see the official Selectel documentation.

Example Usage

resource "selectel_cloudbackup_plan_v2" "plan_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
name = "my-backup-plan"
backup_mode = "full"
full_backups_amount = 7
schedule_type = "crontab"
schedule_pattern = "0 0 * * *"
resources{
resource {
id = "d63dcb8b-77bb-4741-b7dc-1c03c853de12"
name = "my-volume-1"
type = "OS::Cinder::Volume"
}
}
}

Argument Reference

  • project_id — (Required) Unique identifier of the associated project.Retrieved from the selectel_vpc_project_v2 resource.Learn more about Projects.

  • region — (Required) Pool where the backup plan is located, for example, ru-3.Learn more about available pools in the Availability matrix.

  • name — (Required) Name of the backup plan.

  • backup_mode — (Optional) Backup mode used for the plan.Available values are full and frequency.The default value is full.Learn more about backup modes.

  • full_backups_amount — (Required) Maximum number of backups to save in a full plan or full backups in a frequency plan.

  • schedule_type — (Optional) Backup scheduling type.Available values are calendar and crontab.Learn more about schedule types.

  • schedule_pattern — (Optional) Backup scheduling pattern.

  • resources — (Required) List of resources to back up according to the backup plan.The only available type of resources is a volume.You can add multiple volumes — each volume in a separate block.

    • resource — (Required) List of resource details to back up according to the backup plan:

      • id — (Required) Unique identifier of the resource to back up.

      • name — (Required) Name of the resource to back up.

      • type — (Required) Type of the resource to back up.The only available value is "OS::Cinder::Volume".