Video Screencast Help

How can I edit tapes already set to expire INFINITY?

Created: 07 Feb 2013 • Updated: 08 Feb 2013 | 5 comments
This issue has been solved. See solution.

I have recently taken over maintenance of a previously configured NetBackup 6.5.5 server. There are numerous tapes that have their expiration date set as INFINITY, which obviously means that they will never expire. Management has recently agreed a new retention policy that will allow me to expire tapes in months rather than years, although some with classified data will still need to be kept for 7 years from the date of backup.

How can I update these tapes to change the expiration date from INFINITY to something more realistic?

Comments 5 CommentsJump to latest comment

Yasuhisa Ishikawa's picture

You can set new expiration date using bpexpdate command.

For all images in specified medium, use "bpexpdate -m media_ID -d new_exp_date".

For individual images, use "bpexpdate -backupid backup_ID -d new_exp_date".

If you want not to confirm the operation each time, add "-force" option.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

SOLUTION
mph999's picture

bpexpdate -m <media id> -d <date>

Where date is of the format <mm/dd/yyyy HH:MM:SS

 

Example
 
 
root@nbmaster00 scripts $ bpimagelist -U
Backed Up         Expires       Files       KB  C  Sched Type   Policy
----------------  ---------- -------- --------  -  ------------ ------------
02/07/2013 15:39  INFINITY        532   509056  N  Full Backup  tape
 
Which is on this tape
 
E01006   9      6   02/07/2013 15:39  02/07/2013 15:39   hcart      509056     0
                6   INFINITY              N/A
 
I change the expiration:
 
root@nbmaster00 scripts $ bpexpdate -m E01006 -d 02/24/2013 00:00:01
 
And we see ...
 
 
Backed Up         Expires       Files       KB  C  Sched Type   Policy
----------------  ---------- -------- --------  -  ------------ ------------
02/07/2013 15:39  02/24/2013      532   509056  N  Full Backup  tape
 
and the tape 
 
E01006   9      6   02/07/2013 15:39  02/07/2013 15:39   hcart      509056     0
                6   02/24/2013 00:00        N/A
 

Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Yasuhisa Ishikawa's picture

Date format depends on locale. It is better to confirm the format by "bpexpdate --help".

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

Stumpr2's picture

Follow Yasuhisa commands and be sure to use the -force if you have a long list of media so that you dont have to keep hitting the carriage return.....I mean the enter key :-)

VERITAS ain't it the truth?

RBarnett's picture

Many thanks for the fast response. This will save me a small fortune in LTO3 tapes!