Veritas-bu

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

2007-01-25 12:48:25
Subject: [Veritas-bu] Change retention of all tapes(question)
From: cpreston at glasshouse.com (Curtis Preston)
Date: Thu, 25 Jan 2007 12:48:25 -0500
I agree.  In addition, while your script works, it took me a minute to
figure out HOW it worked.  Just a style thing.  I like my scripts a
little more self-describing by doing things one at a time, rather than
imbedding multiple commands inside another command.  Here's the way I
would do it:

 

bpimagelist -l -d mm/dd/yy -e mm/dd/yy | grep IMAGE | awk '{print
$6'}'|while read i

do

  bpexpdate -force -recalculate -backupid $i -ret 9

done

 

 

---

W. Curtis Preston

Author of O'Reilly's Backup & Recovery and Using SANs and NAS

VP Data Protection

GlassHouse Technologies

 

________________________________

From: netbackup-bounces at backupcentral.com
[mailto:netbackup-bounces at backupcentral.com] On Behalf Of Iverson,
Jerald
Sent: Thursday, January 25, 2007 8:46 AM
To: Lee, Kenneth (SBS US); Tim Martino;
Veritas-bu at mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] Change retention of all tapes(question)

 

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/4b12b53e/attachment.html