I was thinking just the other day that I would do a post on browse and retention of savesets but Preston beat me to it with this great post here which covers changing the browse and retention times on savesets. Soooooooo I thought I would do something along the same lines but slightly different.
Just the other day I had a call from a customer who had data on his staging disk that was going to expire due to a short browse and retention policy, but needed to keep the data on the disk to perform a recovery once the replacement server was built. (yip the server was a total loss)
We have to do two things here, stop the savesets from being staged by disabling the staging policy and secondly use nsrmm to extent the browse/retention times to ensure the savesets dont get removed from the disk ( NSRIM -X does this by default every 24 hours)
So heres how you go about it !!
Perform a mminfo command to identify all the savesets on the disk/volume.
mminfo -avot -xc/ -r “ssid,cloneid” -q volume=vcbstagedisk.001
The important thing to note here is;
Once you have the command sussed then add > savesets.txt to the command to save the output to a txt file. If you edit the file you should see something like this.
Then you can run a command from the windows command promt, an example is shown below;
For /F %1 in (savesets.txt) do nsrmm -S %1 -w browse -e retent (Youll need to replace browse and retent with your choosen dates, I usually extent by 1 month)
Once the command completes you can then go and check the results by running the following command which now also reports out on saveset browse and retent.
mminfo -avot -r “ssid,cloneid,ssbrowse,ssretent” -q volume=vcbstagedisk.001
You should now see something like this.
ssid clone id browse retent
1883000520 1228689096 8/12/2010 8/12/2010
1095095097 1229312824 15/12/2010 15/12/2010
2839988292 1229375556 16/12/2010 16/12/2010
3797515640 1230601592 30/12/2010 30/12/2010
3683778379 1234304843 11/02/2010 11/02/2010
For you people out there with Linux/Unix backup servers you can use something like;
for i in $(savesets.txt); do $(nsrmm -w browse -e retent $i); done