Include/ignore disks by UUID instead of VMDK filename
gitea/vn-vmware/pipeline/head This commit looks good
Details
gitea/vn-vmware/pipeline/head This commit looks good
Details
This commit is contained in:
parent
7e8b47b4eb
commit
b9bea048c3
|
@ -1,4 +1,4 @@
|
||||||
vn-vmware (1.1.31) stable; urgency=low
|
vn-vmware (1.1.32) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Reference in New Issue