Re: [Networker] Index retention and Browse times
2006-07-10 13:35:47
> Here is a script that I used to run on my index tapes to reset the
> browse and recycle times. There was a bug in 7.2 (and 7.1 I think)
> where setting them on the savegrp command line didn't always work, so I
> ran the following after my daily disaster recovery index backups. This
> script sets the expiration time to 14 days, but you can make it any
> number of days in the future by changing the "14" in the line "$time +=
> (14 * 24 * 60 * 60)". This is written for my pool "LTO Index", so
> you'll want to change that to your pool name.
> # Get new time, date + 14 days
> # (use noon to avoid daylight savings time problems)
> my $time = timelocal(0,0,12,$mday,($mon-1),($year-1900));
> $time += (14 * 24 * 60 * 60);
> my $newdate = strftime("%m/%d/%y",localtime($time));
> while(<MMINFO>) {
> chomp;
> #`nsrmm -e $newdate -w $newdate -S $_`;
> `nsrmm -e $newdate -w $newdate -S $_`;
I don't know if it was affected by the same bug, but you should be able
to ask networker to do the date calculations for you.
'nsrmm -e "14 days" -w "14 days" -S <ssid>'
--
Darren Dunham ddunham AT taos DOT com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu
if you have any problems
wit this list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|