Solved

DPM script to expire tape data

Posted on 2011-03-25
8
1,800 Views
Last Modified: 2013-11-14
I need help writing a dpm powershell script for DPM 2010 that will:
1) refresh the stand alone tape drive data
2) pause for this job to complete
3) get the presently inserted tape
4) expire the recovery points on the tape
4a) either searching for just the oldest and expiring that one OR
4b) expiring all the recovery points.

The reason for this is that DPM is problematic with tapes and when/how it prunes them.

I have found lots of information similar to what I require on the technet pages but most info references tape libraries not stand alone drives and requires manual input for the parameters.

Please help - thanks in advance
0
Comment
Question by:dexterhome
  • 4
8 Comments
 
LVL 13

Expert Comment

by:Felix Leven
ID: 35215085
All of the *-Tape* cmdlets like Start-TapeRecatalog are used for standalone Drives. Try to searh for them in the DPM Management Shell  

Get-Command -Noun *Tape*
0
 
LVL 5

Author Comment

by:dexterhome
ID: 35215820
Thanks MrGraves

I have been searching through all the options.

I am having issues with fact the I need to string it all together.
I can do individual bits, but not others, some data can be piped and other stuff cannot because the parameter must be set first.
0
 
LVL 5

Author Comment

by:dexterhome
ID: 35259110
deleted by mistake.
Please re-instate so I can add my script for everyone else to use.
0
 
LVL 5

Accepted Solution

by:
dexterhome earned 0 total points
ID: 35259145
I have trudged through all the command helps sections and managed to write a very basic script to do all the points in my question.

It just needs DPMSVR changing to your dpm server name and then scheduling.

get-dpmlibrary -dpmservername DPMSVR | start-dpmlibraryinventory -detailed
ping localhost -n 60
get-dpmlibrary -dpmservername DPMSVR | get-tape | get-recoverypoint | remove-recoverypoint -forcedeletion -confirm:$false
ping localhost -n 10
get-dpmlibrary -dpmservername DPMSVR | get-tape | set-tape -free
ping localhost -n 10
get-dpmlibrary -dpmservername DPMSVR | start-dpmlibraryinventory -detailedping
exit

Open in new window

0
 
LVL 5

Author Closing Comment

by:dexterhome
ID: 35349313
I found the answer myself through a combination of a lot of forums and reading the help files.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now