Veritas-bu

[Veritas-bu] Change retention of all tapes(question)

2007-01-25 11:46:01
Subject: [Veritas-bu] Change retention of all tapes(question)
From: Jerald.Iverson at aiminvestments.com (Iverson, Jerald)
Date: Thu, 25 Jan 2007 10:46:01 -0600
ken,

 

you are redirecting input for the bpexpdate command from a file called
yes, but you state that bpimagelist prompts for a yes.  bpimagelist
doesn't prompt, and to get by the bpexpdate prompting for "are you sure
you want to change the expiration" question, use a "-force" option which
is there specifically for scripting so that you don't have to enter 'y'
dozens of times.

 

jerald

 

________________________________

From: veritas-bu-bounces at mailman.eng.auburn.edu
[mailto:veritas-bu-bounces at mailman.eng.auburn.edu] On Behalf Of Lee,
Kenneth (SBS US)
Sent: Wednesday, January 24, 2007 11:58 AM
To: Tim Martino; Veritas-bu at mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] Change retention of all tapes(question)

 

You can change the expiring of tapes by backup id using the following
commands:

 

bpimagelist -l -d mm/dd/yy -e mm/dd/yy | grep IMAGE | awk '{print
"bpexpdate -recalculate -backupid " $6 " -ret 9 < yes"}' >
command_script_to_run

 

you need to create a file called yes with one line with the word y.
This is required because bpimagelist prompt for a yes.

 

The -ret 9 is to set the backup to infinite.  This command will set the
backup to infinite regardless of how many tapes the image is on.

 

Regards,

Ken

 

________________________________

From: veritas-bu-bounces at mailman.eng.auburn.edu
[mailto:veritas-bu-bounces at mailman.eng.auburn.edu] On Behalf Of Tim
Martino
Sent: Wednesday, January 24, 2007 9:23 AM
To: Veritas-bu at mailman.eng.auburn.edu
Subject: [Veritas-bu] Change retention of all tapes(question)

 

We have just shut down one datacenter and we are moving the backup
server and tapes to a separate location.  Is there an easy way to set
all the tapes by media_id to infinite with just one running of the
command instead of listing every single media_id?  Thanks. 

****************************************************************
Confidentiality Note: The information contained in this
message, and any attachments, may contain confidential
and/or privileged material.  It is intended solely for the
person(s) or entity to which it is addressed.  Any review,
retransmission, dissemination, or taking of any action in
reliance upon this information by persons or entities other
than the intended recipient(s) is prohibited.  If you received
this in error, please contact the sender and delete the
material from any computer.
****************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://mailman.eng.auburn.edu/pipermail/veritas-bu/attachments/20070125/59dfc39a/attachment.html