Forum Discussion

yadda123's avatar
yadda123
Level 4
15 years ago
Solved

Expire images from tape of a policy (retention infinity)

I need to free up some tapes, but on these tapes I have images from a policy with a retention of infinity. There may also be some other images from _other_ policies on the tapes which I do not want to remove. I haven't removed/expired any images before on this setup, so I am here asking for guidance so I dont do something wrong. 

 

Example:

 

Policy "BACKUP1" is a backup that spans 15 tapes, and has a retention of infinity. How would I go about deleting all images of BACKUP1 so I can free up the space on those tapes that I can then run backup for a new policy? Is there a simple command to run to expire the image(s) associated with that policy? Or would I need to run a command against each tape ID? I am using NB6.5(linux). Command line is preferred(the GUI is slow for me; both either way will work for me). Remember, I want to remove all backups from one policy and reuse that space freed on the tapes for a new policy.

 

ALso, would I need to have the tape media in my library when I expire the images? Or may I expire the images beforehand, and then add the tapes in at a later time?

  • Hi,

     

    No, the tapes do not need to be in the library.

     

    So, if you want to expire the image that spans 15 tapes, you can use bpexpdate -backupid "image name" -d 0. If there are indeed no other images on the tape you'll see that the 15 media id's dissappear from the output of bpimagelist. This means that they're available for new backups.

     

    Should you perform this command and you still see the media in the list, then you know there are other images on the tape.

     

    Please take care when expiring images with bpexpdate, if you make a mistake its a time consuming exercise to re-import them.

     

    Hope that helps.

     

    R