Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Terraform in Yandex Cloud
  • Getting started
  • Setting up Yandex Cloud Terraform provider authentication
  • Solution library
    • Overview
    • Release notes
          • backup_policy

In this article:

  • Example usage
  • Arguments & Attributes Reference
  1. Terraform reference
  2. Resources
  3. Cloud Backup
  4. Data Sources
  5. backup_policy

yandex_backup_policy (DataSource)

Written by
Yandex Cloud
Updated at September 23, 2026
View in Markdown
  • Example usage
  • Arguments & Attributes Reference

Get information about a Yandex Backup Policy. For more information, see the official documentation.

Warning

One of policy_id or name should be specified.

Warning

In case you use name, an error will occur if two policies with the same name exist. In this case, rename the policy or use the policy_id.

Example usageExample usage

//
// Get information about existing Cloud Backup Policy
//
data "yandex_backup_policy" "my_policy" {
  name = "some_policy_name"
}

output "my_policy_name" {
  value = data.yandex_backup_policy.my_policy.name
}

Arguments & Attributes ReferenceArguments & Attributes Reference

  • archive_name (Read-Only) (String). The name of generated archives. Default [Machine Name]-[Plan ID]-[Unique ID]a.
  • cbt (Read-Only) (String). Configuration of Changed Block Tracking. Available values are: USE_IF_ENABLED, ENABLED_AND_USE, DO_NOT_USE. Default DO_NOT_USE.
  • compression (Read-Only) (String). Archive compression level. Affects CPU. Available values: NORMAL, HIGH, MAX, OFF. Default: NORMAL.
  • created_at (Read-Only) (String). The creation timestamp of the resource.
  • enabled (Read-Only) (Bool). If this field is true, it means that the policy is enabled.
  • fast_backup_enabled (Read-Only) (Bool). If true, determines whether a file has changed by the file size and timestamp. Otherwise, the entire file contents are compared to those stored in the backup.
  • file_filters (Read-Only) (List Of Object). File filters to specify masks of files to backup or to exclude of backuping.
    • exclusion_masks .
    • inclusion_masks .
  • folder_id (Read-Only) (String). The folder identifier that resource belongs to. If it is not provided, the default provider folder-id is used.
  • format (Read-Only) (String). Format of the backup. It's strongly recommend to leave this option empty or AUTO. Available values: AUTO, VERSION_11, VERSION_12.
  • id (String).
  • lvm_snapshotting_enabled (Read-Only) (Bool). LVM will be used to create the volume snapshot. If LVM fails to create a snapshot (for example, because there is not enough free space), the software will create the snapshot itself.
  • multi_volume_snapshotting_enabled (Read-Only) (Bool). If true, snapshots of multiple volumes will be taken simultaneously. Default true.
  • name (String). The resource name.
  • performance_window_enabled (Read-Only) (Bool). Time windows for performance limitations of backup. Default false.
  • policy_id (String). ID of the policy.
  • reattempts (Read-Only) (Set Of Object). Amount of reattempts that should be performed while trying to make backup at the host.
    • enabled .
    • interval .
    • max_attempts .
  • retention (Read-Only) (Set Of Object). Retention policy for backups. Allows to setup backups lifecycle.
    • after_backup .
    • rules .
      • max_age .
      • max_count .
      • repeat_period .
  • scheduling (Read-Only) (Set Of Object). Schedule settings for creating backups on the host.
    • backup_sets .
      • execute_by_interval .
      • execute_by_time .
        • include_last_day_of_month .
        • monthdays .
        • months .
        • repeat_at .
        • repeat_every .
        • run_later .
        • type .
        • weekdays .
      • type .
    • enabled .
    • max_parallel_backups .
    • random_max_delay .
    • scheme .
    • weekly_backup_day .
  • sector_by_sector (Read-Only) (Bool). A sector-by-sector backup of a disk or volume creates a backup copy of all sectors of the disk or volume, including those that do not contain data. Therefore, the size of such a backup copy will be equal to the size of the original disk or volume.
  • silent_mode_enabled (Read-Only) (Bool). If true, a user interaction will be avoided when possible. Default true.
  • splitting_bytes (Read-Only) (String). Determines the size to split backups. It's better to leave this option unchanged. Default 9223372036854775807.
  • updated_at (Read-Only) (String). The update timestamp of the resource.
  • validation_enabled (Read-Only) (Bool). Validation is a time-consuming process, even with incremental or differential backups of small amounts of data. This is because not only the data physically contained in the backup copy is verified, but all data restored when it is selected. This option requires access to previously created backup copies.
  • vm_snapshot_reattempts (Read-Only) (Set Of Object). Amount of reattempts that should be performed while trying to make snapshot.
    • enabled .
    • interval .
    • max_attempts .
  • vss_provider (Read-Only) (String). Settings for the volume shadow copy service. Available values are: NATIVE, TARGET_SYSTEM_DEFINED. Default NATIVE.

Was the article helpful?

Previous
client_config
Next
backup_policy
© 2026 Direct Cursus Technology L.L.C.