In the Veeam Backup and Replication Console GUI, I can specify "OS Volume" as one of the selected volumes for a Windows Agent job.
How can the same thing be achieved in Veeam Powershell?
I have tried passing
as an option to the
function, but this produces the error "Add-VBRComputerBackupJob: The specified computer backup job is invalid. Source: The Specified volume path is invalid: OS Volume\.".
As a test, I used the GUI to create a Windows Agent job named "xxtest" having "OS Volume" as its one and only selected volume. Then, I passed
Code: Select all
-SelectedVolumes @( (Get-VBRComputerBackupJob -Name "xxtest" ).SelectedVolumes[0] )
as an option to the
function. The function completed without errors and successfully created a new Windows Agent job with "OS Volume" as a selected volume. This test shows that it is possible to create a new VBRComputerBackupJob that has "OS Volume" as one of the Selected Volumes, but I am hoping for some technique that does not require a special manually-created existing VBRComputerBackupJob .