I have developed a script similar to many others found here that will search a backup jobs directory path and scan for the latest VBK. I then get an array of UNC paths to the latest VBK files for all backup jobs on all repositories that new backup file to tape jobs could be created for.
The issue is this:
1. I understand that there are issues with passing a direct file through this command for the job to run off of. If I give the job a full UNC path to the latest VBK that I want to write to tape, it will create the job and then I will look at in the console and it'll show the path to the file as a folder in the files and folders for the job properties instead of a file. This is a known issue, correct?
2. With the above being a known issue, I decided that I could simply give the path to the backup folder as a whole and add a mask to backup any VBK files in the directory. I will pass the following command, and when I view the job through the console, the folder has been added correctly but the mask is missing. Is this a known issue? It's as if the mask parameter for the cmdlet doesn't recognize actually passing the file mask to the job creation.
Code: Select all
Add-VBRTapeFilesJob -name $jobname -server $ServerName -path 'E:\Backups\Domain Controller\' -mediapool $TapeMediaPool -Masks *.vbk
Any insight into this issue would be greatly appreciated. Thanks in advance everyone. Looking forward to v8 which I hear is rumored to resolve much of this tape functionality.