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"
1 Like

I’m having a similar issue but my VM name does not have spaces in it.
./vertical restore Powercode-Centos7 -r 123 --power-off --power-on

Vertical Backup 1.4.3
Storage set to /vmfs/volumes/nfs-datastore
Listing all virtual machines
‘Powercode-Centos7’’ is neither a virtual machine name nor a valid directory

If anyone could help it would be appreciated.

Can you make sure that Powercode-Centos7 is the correct name? You can run vim-cmd vmsvc/getallvms to list all names.