I've had a look around and haven't a direct answer so thought I'd ask here. I have obtained a script to use VCB to backup particular disks instead of whole VMs which can be desirable at times for shifting data around (all though I haven't tested or verified restoring the disk back to a usable VM disk... that's another question in itself!). I'm wondering though if there's a script or similar that could be used to hot clone particular VM disks within a VM instead of a whole VM.
Imagine you want bring up a clone of your Exchange server because you want to install something on it. Well, I'd rather not clone the entire 300GB server and perhaps only the OS and Exchange install and then re-generate the stores with the same production config.
Can this be done via the remote command line or using the VI Toolkit in powershell?
When you take a snapshot of a VM, the VM's disk files will not be locked anymore and you are free to copy any of the disks you like from the cli.
When copying a disk file you should use vmkfstools -i