cancel
Showing results for 
Search instead for 
Did you mean: 

Expire Tapes

TacticalNukePwn
Level 2
 How do I force a piece of media to expire so that it returns to my scratch pool?
1 ACCEPTED SOLUTION

Accepted Solutions

Ira_Brock
Level 5
What Andy said. I use the line below, it probably does the same thing, just a little different.

bpexpdate -ev [MEDIA ID]  -d 0
 
Example:
bpexpdate -ev 000894 -d 0

View solution in original post

5 REPLIES 5

Andy_Welburn
Level 6
e.g. bpexpdate -d 0 -m <media_id>

Just make sure you don't require any images on said media!


Ira_Brock
Level 5
What Andy said. I use the line below, it probably does the same thing, just a little different.

bpexpdate -ev [MEDIA ID]  -d 0
 
Example:
bpexpdate -ev 000894 -d 0

TacticalNukePwn
Level 2
 Awesome, thanks Ira Brock. I'll give that a try.

Andy_Welburn
Level 6
& from then on standardised with other commands to -m but the -ev was retained for "backwards compatibilty" - so we didn't have to change all our scripts. But I may be wrong (thumbs up for that then!) ***EDIT*** was wrong - just checked my 5.1 docs & it's -m there too, so maybe I'm thinking of the good old 4.5 days!

And for completeness:

# bpexpdate -Q
bpexpdate: [-class <name>] [-ev <media id>]
# bpexpdate -help
bpexpdate: -m <media id> -d <mm/dd/yyyy HH:MM:SS | 0 | infinity>
             [-host <name>] [-force] [-nodelete] [-notimmediate]
             [-M <master_server,...,master_server>]
bpexpdate: -deassignempty [-m <media id>] [-force]
             [-M <master_server,...,master_server>]
bpexpdate: -backupid <backup id> -d <mm/dd/yyyy HH:MM:SS | 0 | infinity>
             [-client <name>] [-copy <number>] [-force] [-nodelete] [-notimmediate]
             [-M <master_server,...,master_server>]
bpexpdate: -recalculate [-backupid <backup id>] [-copy <number>]
             [-d <mm/dd/yyyy HH:MM:SS | 0 | infinity>] [-client <name>]
             [-policy <name>] [-ret <retention level>] [-sched <type>]
             [-M <master_server,...,master_server>]
bpexpdate: -stype <server type>
             [-dp <disk pool> [-dv <disk volume>]]
             [-nodelete] [-notimmediate]
             [-M <master_server,...,master_server>]
        legal values for sched: 0=full,1=differential incr,2=user,3=arch
                                4=cumulative incr

Andy_Welburn
Level 6
a negative vote for the correct answer! Have to remember to get the next one wrong! ;)

***EDIT***
Thanks for whoever's just taken pity on me....