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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee, Kenneth (SBS US) Sent: Wednesday, January 24, 2007 11:58 AM To: Tim Martino; Veritas-bu@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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Martino Sent: Wednesday, January 24, 2007 9:23 AM To: Veritas-bu@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. ****************************************************************
_______________________________________________ Veritas-bu maillist - Veritas-bu@mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu