Networker

Re: [Networker] mminfo for getting tapes 4 months old?

2013-02-06 09:29:57
Subject: Re: [Networker] mminfo for getting tapes 4 months old?
From: Dag Nygren <dag AT newtech DOT fi>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 6 Feb 2013 16:17:48 +0200
On Wednesday 06 February 2013 05:15:02 bingo wrote:
> It is good for a general list but you can not be very specific. 
> 
> A combination of -m along with -q is not possible. Time ranges are also not 
> possible.

O yes, it is possible and they are :-)


backup:~ 1003 % mminfo -q "savetime<two years ago" -m
 state volume                  written  (%)  expires     read mounts capacity
X      Full.0083               3928 MB  49%   expired    0 KB     0   8000 MB
X      Full.0084               5056 KB 0.1%   expired    0 KB     1   8000 MB
X      Full.011                2778 MB  35%   expired    0 KB     0   8000 MB
X      Full.012                3523 MB  44%   expired    0 KB     0   8000 MB
E      Full.121                  64 GB full   expired    0 KB    10     80 GB
E      Full.146                  39 GB full   expired    0 KB    10     80 GB
E      Full.147                  41 GB full   expired    0 KB    13     80 GB
E      Full.152                  51 GB full   expired    0 KB    13     80 GB
E      Manual.001                35 GB full   expired    0 KB    15     80 GB
E      Manual.002                34 GB full   expired    0 KB     8     80 GB
E      Manual.003                16 GB  20%   expired    0 KB    11     80 GB

And:

backup:~ 1004 % mminfo -q "savetime>3 years ago,savetime<two years ago" -m
 state volume                  written  (%)  expires     read mounts capacity
E      Full.121                  64 GB full   expired    0 KB    10     80 GB
E      Full.146                  39 GB full   expired    0 KB    10     80 GB
E      Full.147                  41 GB full   expired    0 KB    13     80 GB
E      Full.152                  51 GB full   expired    0 KB    13     80 GB

And if you only want volume names:

backup:~ 1005 % mminfo -q "savetime<two years ago" -r volume
Full.0083
Full.0084
Full.011
Full.012
Full.121
Full.146
Full.147
Full.152
Manual.001
Manual.002
Manual.003

Best
Dag