We need to change the number of restore points for multiple disk jobs before the start of a tape job and need to change it back again to the old value after the tape job has finished. We want to use pre-backup and post-backup scripts to start PowerShell to do this for us without any user input. I found this code on the forum but it requires input:
- Code: Select all
# Set desired Amount of Restore Points
$Jobs = Get-VBRJob
ForEach ($Job in $Jobs)
$Options = $Job.GetOptions()
$Options.BackupStorageOptions.RetainCycles = $RestorePoints
How can I accomplish this without any user input?