Modifying media sets in Backup Exec 2012 with PowerShell

The default media set “Keep Data for 4 Weeks” is that it works on a 28 day cycle, which is of course 4 weeks. The problem with that is that its 4 weeks from the finish time, not the start time. This leads to scheduling creep as it progresses further and further out from the original time.

The fix to this is pretty simple, just change the protected time to 27 days instead of 28. This will bring the tape out of protected a day early, but it will be from the finish time of the job not the start time.

Typing Get-BEMediaSet “Keep Data for 4 Weeks” will get the basic info you need to change, namely OverwriteProtectionPeriodHours and AppendPeriodHours


A quick calculation later….


…and now we have the new OverwriteProtectionPeriodHours hours that we need for our next step.

You set the new protection and append periods with the command Set-BEMediaSet –InputObject “ Keep Data for 4 Weeks” –OverwriteProtectionPeriodHours 648 –AppendPeriodHours 6

We arrived at the 648 hours from the calculation we did above, 24 hours times 27 days. I’ve also changed the append hours to 6 as I look at direct to tape backups as full backs up, once a day.


As you can see, the OverwriteProtectionPeriodHours and the AppendPeriodHours have both been changed to a more suitable configuration then the default.


About Phill McSherry
Phill McSherry has been working in the Australian IT industry for over 20 years and is the technical manager and solutions architect for managed services provider Titan Solutions -

One Response to Modifying media sets in Backup Exec 2012 with PowerShell

  1. Pingback: Selecting and Moving Tapes in a Media Set « A Resting Sys Admin's Blog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: