Viewing the parameters of disks and partitions in a backup
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 or Yandex BareMetal server.
For information on using BareMetal servers, see Connecting a BareMetal server to Cloud Backup. BareMetal is at the Preview stage.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the CLI command to get parameters of disks and partitions in a backup:
yc backup backup get --help
-
Get the ID of the appropriate backup:
yc backup backups list
Result:
+--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+ | 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 | +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+
-
Get the parameters of disks and partitions in the backup:
yc backup backup get --backup-id <backup_ID>
Result:
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 the command, see the CLI reference.
To view the parameters of disks and partitions in a backup, use the get REST API method for the Backup resource or the BackupService/Get gRPC API call.