This variable as stated by the documentation is the name of the datastore in which you will be _backing_ up your VMs to. This datastore can be a local volume or a remote volume such as iSCSI/FC/NAS. If you login to your ESXi host using the vSphere Client, you should see some datastores in which you can create VMs, you basically need to specify a datastore that will be used to store your backups.
I understand what needs to be there but I am unsure how to specify it. I have my ESXi server on an IP address and the datastore is the local hard drives on that server. Do I put this for the location?
"IP of box / name of datastore"
You specify it by specifying the name of your datastore you will be using to backup your VMs. If you login to the ESXi host, on the right hand side of the summary you should see a "Datastore" section, you need to specify the datastore in which you will use to backup.
Here is an example screenshot:
So if your datastore was named "backup", then you will use that name for the variable.
It sounds like you may not be completely familiar with using vSphere ESXi, I would highly recommend you familiarized yourself with ESXi before using this script. This script is not meant for beginners
Here is my datastore like posted above:
I don't believe "Internal HDD" is going to be enough information for your script to find the datastore. I don't understand your example:
my $VM_BACKUP_DATASTORE = "dlgCore-NFS-bigboi.VM-Backups";
I suppose this is the hostname.datastore? I however do not have a hostname setup. Our server is on our internal network 192.168.1.XX. How do I specify the datastore so your script can recognize the location of the Virtual Machines?
I currently am getting the "unable to locat VM: xxxxxxx" error.
Thank You for your help,