I've been asked by our database team to set up a script that restores Windows guest files from one VM to a separate VM. More specifically, they're looking to pull database files from a production DB server into a development DB server. This way, the dev server always has updated data to test.
For instance, I want to restore VM-PROD H:\SQLData\*.mdf
into VM-DEV H:\VeeamStaging
. Using the GUI is simple enough, I just specify \\VM-DEV\H$\VeeamStaging
in the popup destination prompt and it transfers across the network. I want to replicate this behavior using a PowerShell script.
So I'm playing with the Start-VBRRestoreVMFiles
cmdlet, and this is what I have:
- Code: Select all
Start-VBRRestoreVMFiles $restorepoint -Server $server -path "\\VM-DEV\H$\VeeamStaging" -Files ...
And here is where I'm confused. The parameter type for -Files
, but nowhere can I find a description of what that data type is.
What type of parameter am I supposed to pass in here? I can't use a string such as "C:\path\", so what are my options?
Thanks in advance!