Video Screencast Help
Protect Your POS Environment Against Retail Data Breaches. Learn More.

How to expire image and tape?

Created: 07 Jun 2011 • Updated: 20 Jan 2013 | 5 comments
This issue has been solved. See solution.

We have backup archive for 7 years, recently the policy changed, we just need to keep for 5 years. How do I expire the images that is more than 5 years then how to expire the tapes contains those images?

Thank you.

 

Iwan Tamimi

Comments 5 CommentsJump to latest comment

Riaan.Badenhorst's picture

You can use the bpexpdate command to expire images older than 5 years and you can use it to recalculate the expire date for ones that have not expired (say ones that are only 3 years old).

Regards,

Riaan Badenhorst

You need an OpenVision to see the truth about Backups. Restores are a plus. But that's just Semantics ;)

ITs easy :)

SOLUTION
Claudio Veronezi's picture

Catalog search, find your tape (or backup) right click and bye bye

Claudio Veronezi Mendes
IT Manager at Lb2 Consultoria
Londrina - Pr - Brazil
 

J.H Is gone's picture

If you need all images expired on a tape you can use bpexpdate to expire ALL images on the tape (you only expired images - you never expire a tape)  but by using the media id it expires all images on that tape (making it a scratch)

If you only need to expire some images on a tape you need to get the image names

you can do this in the gui/cli by asking for all images on a tape, and getting the images names you want to expire, then use bpexpdate to expire only those images.

you can then use bpexpdate to recalculate the expiration date of the remaining images to be 5 years instead of 7 years.

So read the details on the command and come backup with any questions if something is not clear.

I don't have to know how to spell....I work on Unix.
NetBackup 7.0.1 - AIX & Windows

David McMullin's picture

If you are currently backing up this client, you need to be careful not to expire the wrong images.

If you are changing ALL images for a client - find the retention NUMBER for 5 yr and 7 yr.

bpexpdate -recalculate -client CLIENT -ret NUMBER -force

 

If you have specific dates, on unix I use this simple for next loop:

### use bpimagelist to find images for client between dates ( there are options to allow very specific finds )

for i in `/usr/openv/netbackup/bin/admincmd/bpimagelist -idonly -d '01/01/2005' -e '12/31/2010' -client CLIENT | cut -d " " -f10`

do

### echo a display so you can see something happening, lol

echo "Changing Backup ID: "$i at `date +%Y%m%d.%H%M`

### use bpexpdate to recalulate the backupid, you can use -d "MM/DD/YYYY HH:MM:SS" to a date

/usr/openv/netbackup/bin/admincmd/bpexpdate -recalculate -backupid $i -ret NUMBER -force

done
 

NBU 7.0.1 on Solaris 10
writing to EMC 4206 VTL
duplicating to LTO5 in SL8500
using ACSLS 7.3.1

emret's picture

bpexpdate: -m <media id> -d <mm/dd/yyyy HH:MM:SS