Include/ignore disks by UUID instead of VMDK filename
gitea/vn-vmware/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-04-29 14:18:36 +02:00
parent 7e8b47b4eb
commit b9bea048c3
2 changed files with 5 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-vmware (1.1.31) stable; urgency=low vn-vmware (1.1.32) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -510,13 +510,14 @@ sub backup_machine() {
$i++; $i++;
my $disk_path = $device->backing->fileName; my $disk_path = $device->backing->fileName;
my $disk_file = basename($disk_path); my $disk_file = basename($disk_path);
my $disk_uuid = $device->backing->uuid;
if (defined($backup_disks) && !($disk_file ~~ @$backup_disks)) { if (defined($backup_disks) && !($disk_uuid ~~ @$backup_disks)) {
log_message "$disk_path (Ignored)"; log_message "[$disk_uuid] $disk_path (Ignored)";
next; next;
} }
log_message $disk_path; log_message "[$disk_uuid] $disk_path";
if ($disk_file ~~ @copied_devices) { if ($disk_file ~~ @copied_devices) {
$disk_file = "${i}_$disk_file"; $disk_file = "${i}_$disk_file";