GroupBlog – Exchange, PowerShell, AD, Outlook etc.

Menu

Category Archives: Backup Exec

Sometimes we need to remove bkf files from disk manually due to the media set “Keep Data Infinitely – Do Not Allow Overwrite” in Backup Exec. Zbynek has created a script for that purpose and here is my extended version.

The function RemoveBkfFiles expect to get parameters: source folder (location for bkf files), retention period (how old the bkf file should be remove), destination file for txt report. So its calling could be also:

RemoveBkfFiles "I:\BEData" "-7" "D:\RemovedBKFfiles\Test-Log.txt"

Report looks like the following:

Feel free to update the script according to your needs and let us know if you have any question.

I have created simple script which finds failed/error backup jobs (Backup Exec 2012) and removes related bkf files from disk (because the files are not valid for restore anymore). The scripts needs to be modified based on your environment. The script also creates basic log (list of failed jobs and removed files) in specified directory. Useful thing could be variable $TimeStamp which give us power to modify time how long we want to go back in BEJobHistory.

Note: The script can be scheduled in Task Scheduler with action Start a Program – “Program/script:” PowerShell.exe and “Add arguments (optional):” script file path (e.g. D:\RemovedFiles\RemovingFailedJobFiles.ps1) because of using Import-Module -Name BEMCLI inside.

The error was caused by wrong Backup Selection. We had created new mailbox database and BE seemed to automatically added it into already configured selections. Well we took the backup of this database in all backup jobs. Some of those jobs was scheduled at the same time and due to this reason occurred long querying for VSS writer. When I removed the database from the selections the problem was solved.

I wanted to get names of bkf files (media) from Get-BEJobLog in Backup Exec 2012. Unfortunately Get-BEJobHistory | Get-BEJobLog outputs only log in string value. Due to this reason I created simple function for obtaining the names for particular media.

You cannot use the function for deduplication type of job because of image folder structure.

If you want to import “Backup Exec Management Command Line Interface” into PowerShell session, you need to use cmdlet Import-Module -Name BEMCLI.