Group: Forum Members
I would like to use PowerShell to run about a dozen XML Backup Definition Files in sequence (one after the other). Each of the Backups would perform an Incremental Backup.
Here is an early partial attempt.
For each of my XML Backup Definition Files - I used Reflect to create a a PowerShell file.
Then I have a PowerShell script to run each of those PowerShell scripts.
Invoke-Expression "C:\RHWMain\MacriumReflectfiles\RHWMain.ps1 -inc"
Invoke-Expression "C:\RHWMain\MacriumReflectfiles\RHWThunderbirdProfiles.ps1 -inc"
Invoke-Expression "C:\RHWMain\MacriumReflectfiles\RHWInfrequent.ps1 -inc"
Invoke-Expression "C:\RHWMain\MacriumReflectfiles\RHWSeldom.ps1 –inc"
I would like to use PowerShell to run each of my dozen or so XML Backup Definition Files directly instead of a ps1 PowerShell script, which was created from the XML.
I suspect I can use PowerShell to execute Reflect.exe and passing to it the XML file,
and perhaps an argument such as –inc , indicating the type of backup.
But I don't know how. This is my first attempt at using PowerShell. Can you help me?