Networker

Re: [Networker] Index retention and Browse times

2006-07-10 13:54:53
Subject: Re: [Networker] Index retention and Browse times
From: Daniel Rich <drich AT PDI DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Mon, 10 Jul 2006 10:53:06 -0700
Darren Dunham wrote:
>> 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>'
>   

Yes, but that gives you 14 days from today, and in my case I needed 14
days from when the data was written.  Most of the time those were the
same, but I went through a period where I was running this script on
older data, so wanted to keep the expirations consistent.

-- 
Dan Rich <drich AT pdi DOT com>
          PDI Dreamworks |  "Step up to red alert!"  "Are you sure, sir?
           (650)562-9018 |   It means changing the bulb in the sign..."


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