Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • 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.
Yandex Compute Cloud
    • All guides
      • Creating a snapshot
      • Getting disk snapshot info
      • Deleting a snapshot
      • Creating a snapshot schedule
      • Getting disk snapshot schedule info
      • Changing a snapshot schedule
      • Disabling and enabling a snapshot schedule
      • Encrypting an image
      • Configuring disk snapshot access permissions
      • Configuring snapshot schedule access permissions
      • Deleting a snapshot schedule
    • Viewing service resource operations
    • Viewing metrics in Monitoring
    • NVIDIA driver update guide
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • Updating basic settings
  • Updating a disk list
  • Examples
  • Updating the name of a schedule
  1. Step-by-step guides
  2. Disk snapshots
  3. Changing a snapshot schedule

Updating a disk snapshot schedule

Written by
Yandex Cloud
Improved by
Danila N.
Updated at December 3, 2025
  • Updating basic settings
  • Updating a disk list
  • Examples
    • Updating the name of a schedule

Updating basic settingsUpdating basic settings

To update basic settings of a disk snapshot schedule:

Management console
CLI
Terraform
API
  1. In the management console, select the folder containing the schedule.

  2. Go to Compute Cloud.

  3. In the left-hand panel, select Snapshots.

  4. Navigate to the Snapshot schedules tab.

  5. Next to the schedule you want to update, click and select Edit.

  6. Edit disk snapshot schedule parameters as needed:

    • Name. The naming requirements are as follows:

      • It must be from 2 to 63 characters long.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    • Description.

    • Under Create snapshots, select the disk snapshot frequency: By hour, By day, By week, or By cron expression. The snapshot creation time is specified in UTC±00:00.

    • In the Starting on field, set the start date for your schedule.

    • Select the disk snapshot retention policy:

      • Store all snapshots: Enable to retain all disk snapshots created by this schedule.
      • Only the last: Specify the number of the latest disk snapshots to retain or the number of days for which you want to retain the snapshots. Any other disk snapshots created by this schedule will be deleted automatically.

      Note

      There are quotas on the number and total size of disk snapshots in the cloud.

  7. Click Save.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. See the description of the CLI commands for managing schedules:

    yc compute snapshot-schedule --help
    yc compute snapshot-schedule update --help
    
  2. Get a list of schedules in the default folder:

    yc compute snapshot-schedule list --format yaml
    

    Result:

    - id: fc852cvb1ipd5********
      folder_id: e1ea8s8l71li********
      created_at: "2022-09-28T13:25:02Z"
    ...
        expression: 10 19 ? * *
      snapshot_count: "7"
      snapshot_spec: {}
    
  3. Update the parameters of the selected schedule:

    yc compute snapshot-schedule update <schedule_name_or_ID> \
      --new-name <new_name_for_schedule> \
      --description <description> \
      --expression <cron_expression> \
      --retention-period <disk_snapshot_retention_period> \
      --snapshot-count <number_of_disk_snapshots> \
      --start-at <start_date_and_time> \
      --labels <labels>
    

    Where:

    • --new-name: New name for the schedule.
    • --description: Description.
    • --expression: Cron expression.
    • --retention-period: Disk snapshot retention period in seconds (s), minutes (m), or hours (h).
    • --snapshot-count: Number of retained disk snapshots. Use either --snapshot-count or --retention-period. Learn more about disk snapshot retention policies here.
    • --start-at: Start date and time. You can also specify a period relative to the current time point, e.g., "2022-12-31T16:39:00+05:00" or "2h".
    • --labels: List of labels in key=value format.

    For more information about the yc compute snapshot-schedule update command, see this CLI reference.

    Result:

    done (3s)
    id: fc8e52mvchb2********
    folder_id: e1ea8s8l71li********
    ...
      expression: 36 14 */1 * *
    snapshot_count: "3"
    snapshot_spec: {}
    

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

  1. Open the Terraform configuration file and edit the section specifying the schedule:

    Example of specifying a schedule in Terraform configuration
    resource "yandex_compute_snapshot_schedule" "default" {
      name = "my-name"
    
      schedule_policy {
        expression = "0 0 * * *"
      }
    
      snapshot_count = 1
    
      snapshot_spec {
        description = "snapshot-description"
        labels = {
          snapshot-label = "my-snapshot-label-value"
        }
      }
    
      disk_ids = ["test_disk_id", "another_test_disk_id"]
    }
    
  2. Apply the changes:

    1. In the terminal, go to the directory where you edited the configuration file.

    2. Make sure the configuration file is correct using this command:

      terraform validate
      

      If the configuration is correct, you will get this message:

      Success! The configuration is valid.
      
    3. Run this command:

      terraform plan
      

      You will see a detailed list of resources. No changes will be made at this step. If the configuration contains any errors, Terraform will show them.

    4. Apply the changes:

      terraform apply
      
    5. Type yes and press Enter to confirm the changes.

You can check the schedule update and settings using the management console or this CLI command:

yc compute snapshot-schedule get <schedule_name>
  1. Get a list of schedules using the list REST API method for the SnapshotSchedule resource or the SnapshotScheduleService/List gRPC API call.

    You can create snapshots of network disks and drives, such as HDDs, SSDs, and non-replicated SSDs, as well as ultra high-speed network storages with three replicas (SSD).

    For non-replicated SSDs and ultra high-speed network storages with three replicas (SSD), the snapshot time is not determined.

    To create snapshots of local disks residing on dedicated hosts, use Yandex Cloud Backup. This service supports Ubuntu, CentOS, CentOS Stream, and Windows Server.

  2. Update a disk snapshot schedule using the update REST API method for the SnapshotSchedule resource or the SnapshotScheduleService/Update gRPC API call.

Updating a disk listUpdating a disk list

To edit a list of disks for which snapshots are scheduled:

Management console
CLI
API
  1. In the management console, select the folder containing the schedule.
  2. Go to Compute Cloud.
  3. In the left-hand panel, select Snapshots.
  4. On the Snapshot schedules tab, select the schedule for which you want to update a disk list.
  5. Update the disk list:
    • To add a new disk, under Disks, click Add disk. In the window that opens, choose a disk to add to the schedule and click Save.

      You can create snapshots of network disks and drives, such as HDDs, SSDs, and non-replicated SSDs, as well as ultra high-speed network storages with three replicas (SSD).

      For non-replicated SSDs and ultra high-speed network storages with three replicas (SSD), the snapshot time is not determined.

      To create snapshots of local disks residing on dedicated hosts, use Yandex Cloud Backup. This service supports Ubuntu, CentOS, CentOS Stream, and Windows Server.

    • To remove a disk, under Disks, next to the disk you want to remove from the schedule, click and select Delete from schedule.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

Add or remove disks using the add-disks and remove-disks commands.

To add disks:

  1. See the description of the CLI commands for managing schedules:

    yc compute snapshot-schedule --help
    yc compute snapshot-schedule add-disks --help
    
  2. Get a list of schedules in the default folder:

    yc compute snapshot-schedule list --format yaml
    

    Result:

    - id: fc852cvb1ipd5********
      folder_id: e1ea8s8l71li********
      created_at: "2022-09-28T13:25:02Z"
    ...
        expression: 10 19 ? * *
      snapshot_count: "7"
      snapshot_spec: {}
    
  3. Get disk IDs to add them to the schedule:

    yc compute disk list --format yaml
    

    Result:

    - id: epdcq9g3co9s********
      folder_id: e1ea8s8l71li********
      created_at: "2022-10-13T14:37:44Z"
    ...
      instance_ids:
        - fhm1c7u23aiq********
      disk_placement_policy: {}
    
  4. Add disks to the schedule:

    yc compute snapshot-schedule add-disks <schedule_name_or_ID> \
      --disk-id <disk_1_ID>,<disk_2_ID>
    

    Result:

    done (3s)
    id: fc8e52mvchb2********
    folder_id: e1ea8s8l71li********
    ...
      expression: 36 14 */1 * *
    snapshot_count: "3"
    snapshot_spec: {}
    

To remove disks:

  1. See the description of the CLI commands for managing schedules:

    yc compute snapshot-schedule --help
    yc compute snapshot-schedule remove-disks --help
    
  2. Get a list of schedules in the default folder:

    yc compute snapshot-schedule list --format yaml
    

    Result:

    - id: fc852cvb1ipd5********
      folder_id: e1ea8s8l71li********
      created_at: "2022-09-28T13:25:02Z"
    ...
        expression: 10 19 ? * *
      snapshot_count: "7"
      snapshot_spec: {}
    
  3. Get a list of disks in the current schedule:

    yc compute snapshot-schedule list-disks <schedule_name_or_ID> \
      --format yaml
    

    Result:

    - id: epdcq9g3co9s********
      folder_id: e1ea8s8l71li********
      created_at: "2022-10-13T14:37:44Z"
    ...
      instance_ids:
        - fhm1c7u23aiq********
      disk_placement_policy: {}
    
  4. Remove disks from the schedule:

    yc compute snapshot-schedule remove-disks <schedule_name_or_ID> \
      --disk-id <disk_1_ID>,<disk_2_ID>
    

    Result:

    done (3s)
    id: fc8e52mvchb2********
    folder_id: e1ea8s8l71li********
    ...
      expression: 36 14 */1 * *
    snapshot_count: "3"
    snapshot_spec: {}
    
  1. Get a list of schedules using the list REST API method for the SnapshotSchedule resource or the SnapshotScheduleService/List gRPC API call.
  2. Get a list of disks using the list REST API method for the Disk resource or the DiskService/List gRPC API call.
  3. Update the list of disks in a schedule using the updateDisks REST API method for the SnapshotSchedule resource or the SnapshotScheduleService/UpdateDisks gRPC API call.

ExamplesExamples

Updating the name of a scheduleUpdating the name of a schedule

CLI
  1. Get a list of schedules in the default folder:

    yc compute snapshot-schedule list --format yaml
    

    Result:

    - id: fc852cvb1ipd5********
      folder_id: e1ea8s8l71li********
      created_at: "2022-09-28T13:25:02Z"
    ...
        expression: 10 19 ? * *
      snapshot_count: "7"
      snapshot_spec: {}
    
  2. Update the name of the selected schedule:

    yc compute snapshot-schedule update sched-1 \
      --new-name "my-schedule"
    

    Result:

    done (3s)
    id: fc8e52mvchb2********
    folder_id: e1ea8s8l71li********
    ...
      expression: 36 14 */1 * *
    snapshot_count: "3"
    snapshot_spec: {}
    

What's nextWhat's next

  • Disabling and enabling a disk snapshot schedule.
  • Deleting a disk snapshot schedule.

Was the article helpful?

Previous
Getting disk snapshot schedule info
Next
Disabling and enabling a snapshot schedule
© 2026 Direct Cursus Technology L.L.C.