Unsolved

This post is more than 5 years old

6 Posts

511

October 22nd, 2008 20:00

How to Delete savesets from a specific volume

I am trying to find out how to delete all savesets from a particular volume older than a specific date. Any help would be greatly appreciated.

2 Intern

 • 

724 Posts

October 23rd, 2008 05:00

Probably you'll have to use something like:

mminfo -q "volume=VOLNAME,savetime>MM/DD/YY" -r ssid

Then for each ssid use nsrmm -d to remove them. Just create a small script that does this, it's not that hard.

And just if you're not aware of this: nsrmm -d will delete the saveset info from the media db. Data on a file device will be removed as well, but if it's a tape, data will remain there until you relabel it, ok?

6 Operator

 • 

14.4K Posts

 • 

56.2K Points

October 24th, 2008 02:00

I would just change -r to read -r ssid,cloneid as in case of cloning with longer retention you may wish to leave other volume(s) with copy not affected by delete operation.

443 Posts

October 24th, 2008 22:00

Your nsrmm command would also change if your are looking at deleting only a particular clone of a saveset. You would need to specifically mention the cloneid along with the ssid.
No Events found!

Top