Can't restore VM with spaces in name

Hey forum,

I’ve just tried to restore a VM with spaces in its name for the first time and I get the error " is neither a virtual machine name nor a valid directory". A VM without spaces in the name works fine, as below.

I’ve tried escaping the spaces and not, but I still get the same result.

Can anyone recommend a fix please?

Cheers :slight_smile:

[root@esxi1:/vmfs/volumes/5d594ec9-a41ce260-1765-7085c259fc13/verticalbackup] ./vertical restore -r 1 Domain\ Controller\ 2
Vertical Backup 1.3.4
Storage set to /vmfs/volumes/Lab NFS/Backups/
Listing all virtual machines
‘Domain Controller 2’’ is neither a virtual machine name nor a valid directory
[root@esxi1:/vmfs/volumes/5d594ec9-a41ce260-1765-7085c259fc13/verticalbackup] ./vertical restore -r 1 DNS\ Server
Vertical Backup 1.3.4
Storage set to /vmfs/volumes/Lab NFS/Backups/
Listing all virtual machines
‘DNS Server’’ is neither a virtual machine name nor a valid directory
[root@esxi1:/vmfs/volumes/5d594ec9-a41ce260-1765-7085c259fc13/verticalbackup] ./vertical restore -r 1 WSUS
Vertical Backup 1.3.4
Storage set to /vmfs/volumes/Lab NFS/Backups/
Listing all virtual machines
Removing all snapshots of WSUS
File WSUS.nvram is up-to-date
File WSUS.vmx is up-to-date
File WSUS.vmxf is up-to-date
Downloading *******---------------------------------------------------------------------------------------------------------------------------------------- 303.73MB/s 00:05:19 5.1%

Try this:

./vertical restore -r 1 "Domain Controller 2"