Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Yandex Cloud Backup
    • Все инструкции
    • Активировать сервис
    • Посмотреть операции с ресурсами сервиса
    • Ограничить использование оперативной памяти агентом Cloud Backup
    • Посмотреть статистику резервного копирования
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • List
        • Create
        • Get
        • Update
        • Delete
        • Apply
        • ListApplications
        • Execute
        • Revoke
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • История изменений
  • Решение проблем

В этой статье:

  • gRPC request
  • UpdatePolicyRequest
  • PolicySettings
  • RetriesConfiguration
  • Interval
  • Splitting
  • VolumeShadowCopyServiceSettings
  • ArchiveProperties
  • PerformanceWindow
  • Retention
  • RetentionRule
  • Scheduling
  • BackupSet
  • Time
  • TimeOfDay
  • SinceLastExecTime
  • FileFilters
  • PrePostCommand
  • operation.Operation
  • UpdatePolicyMetadata
  • Policy
  • PolicySettings
  • RetriesConfiguration
  • Interval
  • Splitting
  • VolumeShadowCopyServiceSettings
  • ArchiveProperties
  • PerformanceWindow
  • Retention
  • RetentionRule
  • Scheduling
  • BackupSet
  • Time
  • TimeOfDay
  • SinceLastExecTime
  • FileFilters
  • PrePostCommand
  1. Справочник API
  2. gRPC (англ.)
  3. Policy
  4. Update

Cloud Backup API, gRPC: PolicyService.Update

Статья создана
Yandex Cloud
Улучшена
Tania L.
Обновлена 6 ноября 2025 г.
  • gRPC request
  • UpdatePolicyRequest
  • PolicySettings
  • RetriesConfiguration
  • Interval
  • Splitting
  • VolumeShadowCopyServiceSettings
  • ArchiveProperties
  • PerformanceWindow
  • Retention
  • RetentionRule
  • Scheduling
  • BackupSet
  • Time
  • TimeOfDay
  • SinceLastExecTime
  • FileFilters
  • PrePostCommand
  • operation.Operation
  • UpdatePolicyMetadata
  • Policy
  • PolicySettings
  • RetriesConfiguration
  • Interval
  • Splitting
  • VolumeShadowCopyServiceSettings
  • ArchiveProperties
  • PerformanceWindow
  • Retention
  • RetentionRule
  • Scheduling
  • BackupSet
  • Time
  • TimeOfDay
  • SinceLastExecTime
  • FileFilters
  • PrePostCommand

Update specific policy.

gRPC requestgRPC request

rpc Update (UpdatePolicyRequest) returns (operation.Operation)

UpdatePolicyRequestUpdatePolicyRequest

{
  "policy_id": "string",
  "settings": {
    "compression": "Compression",
    "format": "Format",
    "multi_volume_snapshotting_enabled": "bool",
    "preserve_file_security_settings": "bool",
    "reattempts": {
      "enabled": "bool",
      "interval": {
        "type": "Type",
        "count": "int64"
      },
      "max_attempts": "int64"
    },
    "silent_mode_enabled": "bool",
    "splitting": {
      "size": "int64"
    },
    "vm_snapshot_reattempts": {
      "enabled": "bool",
      "interval": {
        "type": "Type",
        "count": "int64"
      },
      "max_attempts": "int64"
    },
    "vss": {
      "enabled": "bool",
      "provider": "VSSProvider"
    },
    "archive": {
      "name": "string"
    },
    "performance_window": {
      "enabled": "bool"
    },
    "retention": {
      "rules": [
        {
          "backup_set": [
            "RepeatePeriod"
          ],
          // Includes only one of the fields `max_age`, `max_count`
          "max_age": {
            "type": "Type",
            "count": "int64"
          },
          "max_count": "int64"
          // end of the list of possible fields
        }
      ],
      "before_backup": "bool"
    },
    "scheduling": {
      "backup_sets": [
        {
          // Includes only one of the fields `time`, `since_last_exec_time`
          "time": {
            "weekdays": [
              "Day"
            ],
            "repeat_at": [
              {
                "hour": "int64",
                "minute": "int64"
              }
            ],
            "repeat_every": {
              "type": "Type",
              "count": "int64"
            },
            "time_from": {
              "hour": "int64",
              "minute": "int64"
            },
            "time_to": {
              "hour": "int64",
              "minute": "int64"
            },
            "monthdays": [
              "int64"
            ],
            "include_last_day_of_month": "bool",
            "months": [
              "int64"
            ],
            "type": "RepeatePeriod",
            "run_later": "bool"
          },
          "since_last_exec_time": {
            "delay": {
              "type": "Type",
              "count": "int64"
            }
          },
          // end of the list of possible fields
          "type": "Type"
        }
      ],
      "enabled": "bool",
      "max_parallel_backups": "int64",
      "rand_max_delay": {
        "type": "Type",
        "count": "int64"
      },
      "scheme": "Scheme",
      "weekly_backup_day": "Day",
      "task_failure": {
        "enabled": "bool",
        "interval": {
          "type": "Type",
          "count": "int64"
        },
        "max_attempts": "int64"
      }
    },
    "cbt": "ChangedBlockTracking",
    "fast_backup_enabled": "bool",
    "quiesce_snapshotting_enabled": "bool",
    "file_filters": {
      "exclusion_masks": [
        "string"
      ],
      "inclusion_masks": [
        "string"
      ]
    },
    "sector_by_sector": "bool",
    "validation_enabled": "bool",
    "lvm_snapshotting_enabled": "bool",
    "pre_post_commands": [
      {
        "cmd": "string",
        "args": "string",
        "enabled": "bool",
        "stop_on_error": "bool",
        "type": "CommandType",
        "wait": "bool",
        "workdir": "string"
      }
    ]
  }
}

Field

Description

policy_id

string

Required field. Policy ID.

settings

PolicySettings

Required field.

PolicySettingsPolicySettings

Set of policy settings

Field

Description

compression

enum Compression

Required field. Archive compression level.

  • COMPRESSION_UNSPECIFIED
  • NORMAL
  • HIGH
  • MAX
  • OFF

format

enum Format

Required field. Format of the Acronis backup archive.

  • FORMAT_UNSPECIFIED
  • VERSION_11: A legacy backup format used in older versions. It's not recommended to use.
  • VERSION_12: A new format recommended in most cases for fast backup and recovery.
  • AUTO: Automatic version selection. Will be used version 12 unless the protection
    plan (policy) appends backups to the ones created by earlier product
    versions.

multi_volume_snapshotting_enabled

bool

If true, snapshots of multiple volumes will be taken simultaneously.

preserve_file_security_settings

bool

If true, the file security settings will be preserved.
Deprecated.

reattempts

RetriesConfiguration

Required field. Configuration of retries on recoverable errors during the backup operations like reconnection to destination. No attempts to fix recoverable errors will be made if retry configuration is not set.

silent_mode_enabled

bool

If true, a user interaction will be avoided when possible. Equals to false if value is not specified.

splitting

Splitting

Required field. Determines the size to split backups on. Splitting is not performed if value is not specified.

vm_snapshot_reattempts

RetriesConfiguration

Required field. Configuration of retries on errors during the creation of the virtual machine snapshot. No attempts to fix recoverable errors will be made if retry configuration is not set.

vss

VolumeShadowCopyServiceSettings

Required field. Settings for the Volume Shadow Copy Service (VSS) provider. If not set, no VSS provider is used.

archive

ArchiveProperties

The archive properties.

performance_window

PerformanceWindow

Required field. Time windows for performance limitations of backup and storage maintenance operations.

retention

Retention

Required field. Configuration of backup retention rules.

scheduling

Scheduling

Required field. Configuration of the backup schedule.

cbt

enum ChangedBlockTracking

Required field. A configuration of Changed Block Tracking (CBT).

  • CHANGED_BLOCK_TRACKING_UNSPECIFIED
  • USE_IF_ENABLED
  • ENABLE_AND_USE
  • DO_NOT_USE

fast_backup_enabled

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.

quiesce_snapshotting_enabled

bool

If true, a quiesced snapshot of the virtual machine will be taken.
Deprecated.

file_filters

FileFilters

File filters to specify masks of files to backup or to exclude of backuping

sector_by_sector

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.
This method can be used to back up a disk or volume with an unsupported file system.

validation_enabled

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.

lvm_snapshotting_enabled

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.

pre_post_commands[]

PrePostCommand

Commands to launch before or after backup execution

RetriesConfigurationRetriesConfiguration

Field

Description

enabled

bool

If true, enables retry on errors.

interval

Interval

Required field. An interval between retry attempts.

max_attempts

int64

Max number of retry attempts. Operation will be considered as failed
when max number of retry attempts is reached.

IntervalInterval

Field

Description

type

enum Type

Required field. A type of the interval.

  • TYPE_UNSPECIFIED
  • SECONDS
  • MINUTES
  • HOURS
  • DAYS
  • WEEKS
  • MONTHS

count

int64

The amount of value specified in Interval.Type.

SplittingSplitting

Field

Description

size

int64

The size of split backup file in bytes.

VolumeShadowCopyServiceSettingsVolumeShadowCopyServiceSettings

Settings for Volume Shadow Copy Services which allows to notify
VSS-aware applications that backup is about to start. This will
ensure the consistent state of all data used by the applications.

Field

Description

enabled

bool

If true, the VSS will be enabled.

provider

enum VSSProvider

Required field. A type of VSS provider to use in backup.

  • VSS_PROVIDER_UNSPECIFIED
  • NATIVE
  • TARGET_SYSTEM_DEFINED

ArchivePropertiesArchiveProperties

Field

Description

name

string

The name of the generated archive. The name may use the following variables: [Machine Name], [Plan ID], [Plan Name], [Unique ID], [Virtualization Server Type].
Default value: [Machine Name]-[Plan ID]-[Unique ID]A.

PerformanceWindowPerformanceWindow

Field

Description

enabled

bool

If true, the time windows will be enabled.

RetentionRetention

Field

Description

rules[]

RetentionRule

A list of retention rules.

before_backup

bool

If true, retention rules will be applied before backup is finished.

RetentionRuleRetentionRule

Field

Description

backup_set[]

enum RepeatePeriod

A list of backup sets where rules are effective.

  • REPEATE_PERIOD_UNSPECIFIED
  • HOURLY
  • DAILY
  • WEEKLY
  • MONTHLY

max_age

Interval

Includes only one of the fields max_age, max_count.

max_count

int64

Includes only one of the fields max_age, max_count.

SchedulingScheduling

Field

Description

backup_sets[]

BackupSet

A list of schedules with backup sets that compose the whole scheme.

enabled

bool

If true, the backup schedule will be enabled.

max_parallel_backups

int64

Max number of backup processes allowed to run in parallel. Unlimited if not set.

rand_max_delay

Interval

Required field. Configuration of the random delay between the execution of parallel tasks.

scheme

enum Scheme

Required field. A backup scheme. Available values: simple, always_full, always_incremental, weekly_incremental, weekly_full_daily_incremental, custom, cdp.

  • SCHEME_UNSPECIFIED
  • SIMPLE
  • ALWAYS_FULL
  • ALWAYS_INCREMENTAL
  • WEEKLY_INCREMENTAL
  • WEEKLY_FULL_DAILY_INCREMENTAL
  • CUSTOM: Custom will require to specify schedules for full, differential
    and incremental backups additionally.
  • CDP

weekly_backup_day

enum Day

Required field. A day of week to start weekly backups.

  • DAY_UNSPECIFIED
  • MONDAY
  • TUESDAY
  • WEDNESDAY
  • THURSDAY
  • FRIDAY
  • SATURDAY
  • SUNDAY

task_failure

RetriesConfiguration

Task failure settings in case of failure of scheduled task, not applicable to manually launched tasks

BackupSetBackupSet

Field

Description

time

Time

Includes only one of the fields time, since_last_exec_time.

since_last_exec_time

SinceLastExecTime

Includes only one of the fields time, since_last_exec_time.

type

enum Type

BackupSet type -- one of incr, full, differential or auto.
if custom scheme is used the BackupSet type should be specified

  • TYPE_UNSPECIFIED
  • TYPE_AUTO
  • TYPE_FULL
  • TYPE_INCREMENTAL
  • TYPE_DIFFERENTIAL

TimeTime

Field

Description

weekdays[]

enum Day

Days in a week to perform a backup.

  • DAY_UNSPECIFIED
  • MONDAY
  • TUESDAY
  • WEDNESDAY
  • THURSDAY
  • FRIDAY
  • SATURDAY
  • SUNDAY

repeat_at[]

TimeOfDay

Time to repeat the backup.

repeat_every

Interval

Frequency of backup repetition.

time_from

TimeOfDay

The start time of the backup time interval.

time_to

TimeOfDay

The end time of the backup time interval.

monthdays[]

int64

Days in a month to perform a backup.
Allowed values are from 1 to 31.

include_last_day_of_month

bool

If set to true, last day of month will activate
the policy.

months[]

int64

Set of values. Allowed values form 1 to 12.

type

enum RepeatePeriod

Required field. Possible types: REPEATE_PERIOD_UNSPECIFIED, HOURLY, DAILY, WEEKLY, MONTHLY.

  • REPEATE_PERIOD_UNSPECIFIED
  • HOURLY
  • DAILY
  • WEEKLY
  • MONTHLY

run_later

bool

If the machine is off, launch missed tasks on boot up.

TimeOfDayTimeOfDay

Field

Description

hour

int64

Hours.

minute

int64

Minutes.

SinceLastExecTimeSinceLastExecTime

Field

Description

delay

Interval

Required field. The interval between backups.

FileFiltersFileFilters

Field

Description

exclusion_masks[]

string

Do not backup files that match the following criteria

inclusion_masks[]

string

Backup only files that match the following criteria

PrePostCommandPrePostCommand

Field

Description

cmd

string

Command to execute

args

string

Command args

enabled

bool

Is command enabled

stop_on_error

bool

Stop backup execution on error

type

enum CommandType

Type of command: pre or post

  • COMMAND_TYPE_UNSPECIFIED
  • PRE_COMMAND: Launch command before backup execution
  • POST_COMMAND: Launch command after backup execution
  • PRE_DATA_COMMAND: Launch command before data capture (snapshot execution)
  • POST_DATA_COMMAND: Launch command after data capture (snapshot execution)

wait

bool

Wait command finish before launching backup

workdir

string

Workdir for command execution

operation.Operationoperation.Operation

{
  "id": "string",
  "description": "string",
  "created_at": "google.protobuf.Timestamp",
  "created_by": "string",
  "modified_at": "google.protobuf.Timestamp",
  "done": "bool",
  "metadata": {
    "policy_id": "string"
  },
  // Includes only one of the fields `error`, `response`
  "error": "google.rpc.Status",
  "response": {
    "id": "string",
    "name": "string",
    "created_at": "google.protobuf.Timestamp",
    "updated_at": "google.protobuf.Timestamp",
    "enabled": "bool",
    "settings": {
      "compression": "Compression",
      "format": "Format",
      "multi_volume_snapshotting_enabled": "bool",
      "preserve_file_security_settings": "bool",
      "reattempts": {
        "enabled": "bool",
        "interval": {
          "type": "Type",
          "count": "int64"
        },
        "max_attempts": "int64"
      },
      "silent_mode_enabled": "bool",
      "splitting": {
        "size": "int64"
      },
      "vm_snapshot_reattempts": {
        "enabled": "bool",
        "interval": {
          "type": "Type",
          "count": "int64"
        },
        "max_attempts": "int64"
      },
      "vss": {
        "enabled": "bool",
        "provider": "VSSProvider"
      },
      "archive": {
        "name": "string"
      },
      "performance_window": {
        "enabled": "bool"
      },
      "retention": {
        "rules": [
          {
            "backup_set": [
              "RepeatePeriod"
            ],
            // Includes only one of the fields `max_age`, `max_count`
            "max_age": {
              "type": "Type",
              "count": "int64"
            },
            "max_count": "int64"
            // end of the list of possible fields
          }
        ],
        "before_backup": "bool"
      },
      "scheduling": {
        "backup_sets": [
          {
            // Includes only one of the fields `time`, `since_last_exec_time`
            "time": {
              "weekdays": [
                "Day"
              ],
              "repeat_at": [
                {
                  "hour": "int64",
                  "minute": "int64"
                }
              ],
              "repeat_every": {
                "type": "Type",
                "count": "int64"
              },
              "time_from": {
                "hour": "int64",
                "minute": "int64"
              },
              "time_to": {
                "hour": "int64",
                "minute": "int64"
              },
              "monthdays": [
                "int64"
              ],
              "include_last_day_of_month": "bool",
              "months": [
                "int64"
              ],
              "type": "RepeatePeriod",
              "run_later": "bool"
            },
            "since_last_exec_time": {
              "delay": {
                "type": "Type",
                "count": "int64"
              }
            },
            // end of the list of possible fields
            "type": "Type"
          }
        ],
        "enabled": "bool",
        "max_parallel_backups": "int64",
        "rand_max_delay": {
          "type": "Type",
          "count": "int64"
        },
        "scheme": "Scheme",
        "weekly_backup_day": "Day",
        "task_failure": {
          "enabled": "bool",
          "interval": {
            "type": "Type",
            "count": "int64"
          },
          "max_attempts": "int64"
        }
      },
      "cbt": "ChangedBlockTracking",
      "fast_backup_enabled": "bool",
      "quiesce_snapshotting_enabled": "bool",
      "file_filters": {
        "exclusion_masks": [
          "string"
        ],
        "inclusion_masks": [
          "string"
        ]
      },
      "sector_by_sector": "bool",
      "validation_enabled": "bool",
      "lvm_snapshotting_enabled": "bool",
      "pre_post_commands": [
        {
          "cmd": "string",
          "args": "string",
          "enabled": "bool",
          "stop_on_error": "bool",
          "type": "CommandType",
          "wait": "bool",
          "workdir": "string"
        }
      ]
    },
    "folder_id": "string"
  }
  // end of the list of possible fields
}

An Operation resource. For more information, see Operation.

Field

Description

id

string

ID of the operation.

description

string

Description of the operation. 0-256 characters long.

created_at

google.protobuf.Timestamp

Creation timestamp.

created_by

string

ID of the user or service account who initiated the operation.

modified_at

google.protobuf.Timestamp

The time when the Operation resource was last modified.

done

bool

If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.

metadata

UpdatePolicyMetadata

Service-specific metadata associated with the operation.
It typically contains the ID of the target resource that the operation is performed on.
Any method that returns a long-running operation should document the metadata type, if any.

error

google.rpc.Status

The error result of the operation in case of failure or cancellation.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

response

Policy

The normal response of the operation in case of success.
If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty.
If the original method is the standard Create/Update,
the response should be the target resource of the operation.
Any method that returns a long-running operation should document the response type, if any.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

UpdatePolicyMetadataUpdatePolicyMetadata

Field

Description

policy_id

string

Required field. Policy ID.

PolicyPolicy

Field

Description

id

string

Required field. Policy ID.

name

string

Required field. Policy name.

created_at

google.protobuf.Timestamp

updated_at

google.protobuf.Timestamp

enabled

bool

If this field is true, it means that the policy is enabled.

settings

PolicySettings

Set of policy settings

folder_id

string

ID of the folder that the policy belongs to.

PolicySettingsPolicySettings

Set of policy settings

Field

Description

compression

enum Compression

Required field. Archive compression level.

  • COMPRESSION_UNSPECIFIED
  • NORMAL
  • HIGH
  • MAX
  • OFF

format

enum Format

Required field. Format of the Acronis backup archive.

  • FORMAT_UNSPECIFIED
  • VERSION_11: A legacy backup format used in older versions. It's not recommended to use.
  • VERSION_12: A new format recommended in most cases for fast backup and recovery.
  • AUTO: Automatic version selection. Will be used version 12 unless the protection
    plan (policy) appends backups to the ones created by earlier product
    versions.

multi_volume_snapshotting_enabled

bool

If true, snapshots of multiple volumes will be taken simultaneously.

preserve_file_security_settings

bool

If true, the file security settings will be preserved.
Deprecated.

reattempts

RetriesConfiguration

Required field. Configuration of retries on recoverable errors during the backup operations like reconnection to destination. No attempts to fix recoverable errors will be made if retry configuration is not set.

silent_mode_enabled

bool

If true, a user interaction will be avoided when possible. Equals to false if value is not specified.

splitting

Splitting

Required field. Determines the size to split backups on. Splitting is not performed if value is not specified.

vm_snapshot_reattempts

RetriesConfiguration

Required field. Configuration of retries on errors during the creation of the virtual machine snapshot. No attempts to fix recoverable errors will be made if retry configuration is not set.

vss

VolumeShadowCopyServiceSettings

Required field. Settings for the Volume Shadow Copy Service (VSS) provider. If not set, no VSS provider is used.

archive

ArchiveProperties

The archive properties.

performance_window

PerformanceWindow

Required field. Time windows for performance limitations of backup and storage maintenance operations.

retention

Retention

Required field. Configuration of backup retention rules.

scheduling

Scheduling

Required field. Configuration of the backup schedule.

cbt

enum ChangedBlockTracking

Required field. A configuration of Changed Block Tracking (CBT).

  • CHANGED_BLOCK_TRACKING_UNSPECIFIED
  • USE_IF_ENABLED
  • ENABLE_AND_USE
  • DO_NOT_USE

fast_backup_enabled

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.

quiesce_snapshotting_enabled

bool

If true, a quiesced snapshot of the virtual machine will be taken.
Deprecated.

file_filters

FileFilters

File filters to specify masks of files to backup or to exclude of backuping

sector_by_sector

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.
This method can be used to back up a disk or volume with an unsupported file system.

validation_enabled

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.

lvm_snapshotting_enabled

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.

pre_post_commands[]

PrePostCommand

Commands to launch before or after backup execution

RetriesConfigurationRetriesConfiguration

Field

Description

enabled

bool

If true, enables retry on errors.

interval

Interval

Required field. An interval between retry attempts.

max_attempts

int64

Max number of retry attempts. Operation will be considered as failed
when max number of retry attempts is reached.

IntervalInterval

Field

Description

type

enum Type

Required field. A type of the interval.

  • TYPE_UNSPECIFIED
  • SECONDS
  • MINUTES
  • HOURS
  • DAYS
  • WEEKS
  • MONTHS

count

int64

The amount of value specified in Interval.Type.

SplittingSplitting

Field

Description

size

int64

The size of split backup file in bytes.

VolumeShadowCopyServiceSettingsVolumeShadowCopyServiceSettings

Settings for Volume Shadow Copy Services which allows to notify
VSS-aware applications that backup is about to start. This will
ensure the consistent state of all data used by the applications.

Field

Description

enabled

bool

If true, the VSS will be enabled.

provider

enum VSSProvider

Required field. A type of VSS provider to use in backup.

  • VSS_PROVIDER_UNSPECIFIED
  • NATIVE
  • TARGET_SYSTEM_DEFINED

ArchivePropertiesArchiveProperties

Field

Description

name

string

The name of the generated archive. The name may use the following variables: [Machine Name], [Plan ID], [Plan Name], [Unique ID], [Virtualization Server Type].
Default value: [Machine Name]-[Plan ID]-[Unique ID]A.

PerformanceWindowPerformanceWindow

Field

Description

enabled

bool

If true, the time windows will be enabled.

RetentionRetention

Field

Description

rules[]

RetentionRule

A list of retention rules.

before_backup

bool

If true, retention rules will be applied before backup is finished.

RetentionRuleRetentionRule

Field

Description

backup_set[]

enum RepeatePeriod

A list of backup sets where rules are effective.

  • REPEATE_PERIOD_UNSPECIFIED
  • HOURLY
  • DAILY
  • WEEKLY
  • MONTHLY

max_age

Interval

Includes only one of the fields max_age, max_count.

max_count

int64

Includes only one of the fields max_age, max_count.

SchedulingScheduling

Field

Description

backup_sets[]

BackupSet

A list of schedules with backup sets that compose the whole scheme.

enabled

bool

If true, the backup schedule will be enabled.

max_parallel_backups

int64

Max number of backup processes allowed to run in parallel. Unlimited if not set.

rand_max_delay

Interval

Required field. Configuration of the random delay between the execution of parallel tasks.

scheme

enum Scheme

Required field. A backup scheme. Available values: simple, always_full, always_incremental, weekly_incremental, weekly_full_daily_incremental, custom, cdp.

  • SCHEME_UNSPECIFIED
  • SIMPLE
  • ALWAYS_FULL
  • ALWAYS_INCREMENTAL
  • WEEKLY_INCREMENTAL
  • WEEKLY_FULL_DAILY_INCREMENTAL
  • CUSTOM: Custom will require to specify schedules for full, differential
    and incremental backups additionally.
  • CDP

weekly_backup_day

enum Day

Required field. A day of week to start weekly backups.

  • DAY_UNSPECIFIED
  • MONDAY
  • TUESDAY
  • WEDNESDAY
  • THURSDAY
  • FRIDAY
  • SATURDAY
  • SUNDAY

task_failure

RetriesConfiguration

Task failure settings in case of failure of scheduled task, not applicable to manually launched tasks

BackupSetBackupSet

Field

Description

time

Time

Includes only one of the fields time, since_last_exec_time.

since_last_exec_time

SinceLastExecTime

Includes only one of the fields time, since_last_exec_time.

type

enum Type

BackupSet type -- one of incr, full, differential or auto.
if custom scheme is used the BackupSet type should be specified

  • TYPE_UNSPECIFIED
  • TYPE_AUTO
  • TYPE_FULL
  • TYPE_INCREMENTAL
  • TYPE_DIFFERENTIAL

TimeTime

Field

Description

weekdays[]

enum Day

Days in a week to perform a backup.

  • DAY_UNSPECIFIED
  • MONDAY
  • TUESDAY
  • WEDNESDAY
  • THURSDAY
  • FRIDAY
  • SATURDAY
  • SUNDAY

repeat_at[]

TimeOfDay

Time to repeat the backup.

repeat_every

Interval

Frequency of backup repetition.

time_from

TimeOfDay

The start time of the backup time interval.

time_to

TimeOfDay

The end time of the backup time interval.

monthdays[]

int64

Days in a month to perform a backup.
Allowed values are from 1 to 31.

include_last_day_of_month

bool

If set to true, last day of month will activate
the policy.

months[]

int64

Set of values. Allowed values form 1 to 12.

type

enum RepeatePeriod

Required field. Possible types: REPEATE_PERIOD_UNSPECIFIED, HOURLY, DAILY, WEEKLY, MONTHLY.

  • REPEATE_PERIOD_UNSPECIFIED
  • HOURLY
  • DAILY
  • WEEKLY
  • MONTHLY

run_later

bool

If the machine is off, launch missed tasks on boot up.

TimeOfDayTimeOfDay

Field

Description

hour

int64

Hours.

minute

int64

Minutes.

SinceLastExecTimeSinceLastExecTime

Field

Description

delay

Interval

Required field. The interval between backups.

FileFiltersFileFilters

Field

Description

exclusion_masks[]

string

Do not backup files that match the following criteria

inclusion_masks[]

string

Backup only files that match the following criteria

PrePostCommandPrePostCommand

Field

Description

cmd

string

Command to execute

args

string

Command args

enabled

bool

Is command enabled

stop_on_error

bool

Stop backup execution on error

type

enum CommandType

Type of command: pre or post

  • COMMAND_TYPE_UNSPECIFIED
  • PRE_COMMAND: Launch command before backup execution
  • POST_COMMAND: Launch command after backup execution
  • PRE_DATA_COMMAND: Launch command before data capture (snapshot execution)
  • POST_DATA_COMMAND: Launch command after data capture (snapshot execution)

wait

bool

Wait command finish before launching backup

workdir

string

Workdir for command execution

Была ли статья полезна?

Предыдущая
Get
Следующая
Delete
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»