[Yandex Cloud documentation](../../../index.md) > [Yandex Cloud Backup](../../index.md) > [Step-by-step guides](../index.md) > Backups > Viewing the parameters of backup disks and partitions

# Viewing the parameters of backup disks and partitions


To avoid errors when recovering from a backup, start by comparing the parameters of the disks and partitions of the backup against those of the [VM](../../../compute/concepts/vm.md) or Yandex BareMetal [server](../../../baremetal/concepts/servers.md).

{% list tabs group=instructions %}

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. View a description of the CLI command to get parameters of disks and partitions in a backup:

      ```bash
      yc backup backup get --help
      ```

  1. Get the ID of the backup:

      ```bash
      yc backup backups list
      ```
      
      Result:
      
      ```text
      +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
      |                  ID                  |              ARCHIVE ID              | COMPUTE INSTANCE ID  |             RESOURCE ID              |      POLICY ID       | TYPE |      DISKS       |  SIZE  |     CREATED AT      |
      +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
      | ab55286e-795f-44dc-90af-b718******** | ef3e8144-fb65-6a59-5ec1-3162******** | jklp0o9i8012******** | 2465BE59-5687-4539-9589-DF7E******** | abc7n3wln123******** | FULL | Disk 1 (15.0 GB) | 1.5 GB | 2023-07-07 16:00:15 |
      | cd50e147-7dfa-449f-816b-67f8******** | gh06b195-c095-1234-7809-0700******** | mnoa5s6d8345******** | 135C519D-B5A3-4781-8DFA-40B3******** | deflqbiwc456******** | FULL | Disk 1 (15.0 GB) | 1.6 GB | 2023-07-03 10:00:10 |
      +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
      ```

  1. Get the parameters of disks and partitions in the backup:

      ```bash
      yc backup backup get --backup-id <backup_ID>
      ```

      Result:

      ```text
      id: 3cafa684-a046-459f-a772-cb8f********
      vault_id: c069302c-5ed6-2a15-7844-3a6d********
      archive_id: 2f1b7059-5981-6f3c-5420-e017********
      created_at: "2024-08-19T09:38:17Z"
      last_seen_at: "2024-08-19T09:40:52Z"
      size: "2420551680"
      deduplicated_size: "5333225683"
      original_data_size: "5333225683"
      compute_instance_id: epdc87d7q49r********
      disks:
        - name: Disk 1
          size: "21474836480"
          volumes:
            - name: vda1
              size: "1048576"
              mount_strid: \archpit(3CAFA684459FA0468FCB72A7********)\disk1_part1
            - free_space: "15617032192"
              is_bootable: true
              is_system: true
              name: vda2
              size: "21472722432"
              mount_strid: \archpit(3CAFA684459FA0468FCB72A7********)\disk1_part2
      type: FULL
      resource_id: CACBB364-FBC5-42A4-83F4-BC8D********
      ```

      Before recovering a disk from the backup, make sure that the number, names, and sizes of the backup's volumes match those of the target disk.

      For more information about this command, see the [CLI reference](../../../cli/cli-ref/backup/cli-ref/backup/get.md).

- API {#api}

  To view the parameters of disks and partitions in a backup, use the [get](../../backup/api-ref/Backup/get.md) REST API method for the [Backup](../../backup/api-ref/Backup/index.md) resource or the [BackupService/Get](../../backup/api-ref/grpc/Backup/get.md) gRPC API call.

{% endlist %}