Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regenerate index past browse policy date

Status
Not open for further replies.

tekkanet

Technical User
Jun 27, 2005
80
IT
Hello,
I have a client with retention time of 1 year and browse time of 1 month.
I had to recover data of 2, 3, 4 and 5 months ago for this client, so I used the nsrck command as detailed in admin guide.
"
To recover a client file index for a specific date, enter the following command:
nsrck -t "time mm/dd/yyyy" -L7 client_name
When you recover a client file index from a time and date in the past, nsrck adds the entire contents of the index from that time and date to the current client file index contents. The client file index becomes much larger.
"
But issuing the command
nsrck -t "04 pm 01/02/2006" -L7 client_name

enlarged the client index only using one tape and not all the available ones since 2nd of January up to today.

I'm manually using this policy to manage tapes in Legato:
- keep every tape that contains end of month backups for 1 year, eventually exporting it from the library
- keep all end of week backups of the last 30 days
- keep all the daily backups of the current month

Manually means that I delete the tapes from inside the mgmt console and then I redo inventory and label for that (new) tape.
For example if tape 005 has data from 14th of March to 25th of March and I am in May and I need space for the tapes, I delete that tape.
Is this the reason why legato only restores client index of one tape?
In my case I had to specify many nsrck commands,
nsrck -t "04 pm 02/02/2006" -L7 mailserver
nsrck -t "04 pm 03/02/2006" -L7 mailserver
nsrck -t "04 pm 04/02/2006" -L7 mailserver
nsrck -t "04 pm 05/02/2006" -L7 mailserver
nsrck -t "04 pm 06/02/2006" -L7 mailserver
nsrck -t "04 pm 07/02/2006" -L7 mailserver

and each of them recovered the index using a different tape.
And now when I select "show versions", I can see al the backups available for that client till today.

Any other ways/strategies to use only one command?
I remember when I delete the tape I'm asked if I want to delete
1) file and media index entries
or
2) file index entries only

I usually select 1)

Could it help selecting 2), if I need to regenerate index past browse policy? Exactly what is the difference?
Thanks in advance,
Gianluca


 
Sorry Gianluca,
i did not unstand everything you do but
you can use the scanner command to repopulate the index temporarily z.B

scanner -i -S <ssid> \\.\Tape0

When you are deleting Tapes you select file and nedia index entries.
This is absolute correct because you relabel the Tape.
If you were deleting the cfi only the Tape and its label will remain in the mediadatabase. During a relabeling networker will delete it from this database.

If you have a limited number of clients there might be a better way to enforce your retention policy.

Create 3 schedules eg Sdaily, Sweekly, Smonthly
In the schedulu Sdaily you make an incremental or level backup on every Weekday, skip on friday til sunday

In the Schedule Sweekly you make a Skip every day but on friday, on friday you make a full backup.
You make an override of skip for last friday every month

In the Schedule Smonthly you skip every day
But you make an override for last friday every month, there you make a full Backup.

Create 3 Groups eg. daily, weekly and monthly.
Select the Schedules ( Sdaily for group daily etc.)
Create 3 Pools eg Pdaily, Pweekly, Pmonthly

As a pool Selection criteria use the apropriate group.

Now create your clients three times and put every client in one group.
Now adjust the retention Policy of the clients to your needs :
1 Year for the Client in Monthly
1 Month for the Client in weekly

2 weeks for the Client in daily

You have to create alot of objects but you gain a higher level of automation this way.
 
Hello,
I suggest an other way to recover an expired saveset:

1)find the ssid(s) of the saveset
mminfo -q "client=myclient,savetime<mm/dd/yy" -ot -v

2)mount the correponding tape
nsrjb -l -S <slot> -f \\.\Tapex

3)scan the tape for the ssid
TIP: use the file number to do it faster!
(filenumber can be identified by: mminfo -q ssid -V )
scanner -i -S <myssid> -f <filenumber> \\.\Tapex

4)set the status of the saveset:
nsrmm -S <myssid> -o notrecyclable

5)you can specify a new browse or expiration time:
nsrmm -S <myssid> -e mm/dd/yy -w mm/dd/yy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top