---
title: "selectel_cloudbackup_plan_v2 resource"
sidebar_label: "selectel_cloudbackup_plan_v2"
description: "Creates and manages backup plans for Selectel Backups in the Cloud"
sidebar_position: 1
---

# selectel\_cloudbackup\_plan\_v2 Resource

:::info

This instruction is a copy of the Selectel Terraform provider documentation in the [Terraform Registry](https://registry.terraform.io/providers/selectel/selectel/latest/docs).

:::

Creates and manages a backup plan for Selectel Backups in the Cloud. For more information about backup plans, see the [official Selectel documentation](/cloud-servers/backups/about-backups/).

## Example Usage \{#example-usage}

```hcl
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 \{#argument-reference}

* `project_id` - (Required) Unique identifier of the associated project. Retrieved from the [selectel\_vpc\_project\_v2](/terraform/selectel-provider-reference/resources/vpc_project_v2) resource. Learn more about [Projects](/access-control/projects/about-projects/).

* `region` - (Required) Pool where the backup plan is located, for example, `ru-3`. Learn more about available pools in the [Availability matrix](/infrastructure/product-availability-by-location/).

* `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](/cloud-servers/backups/about-backups/).

* `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](/cloud-servers/backups/create-backup/#configure-scheduled-backups).

* `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"`.
