Networker

Re: [Networker] mminfo question

2004-01-21 15:01:32
Subject: Re: [Networker] mminfo question
From: "MEYER, MICHAEL W" <MICHAEL_MEYER AT FLEETCC DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Wed, 21 Jan 2004 14:52:37 -0500
Thank you. This is what I needed.
Mike

-----Original Message-----
From: Darren Dunham [mailto:ddunham AT TAOS DOT COM]
Sent: Wednesday, January 21, 2004 2:31 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] mminfo question


>
> What is a quick ay to list each networker client's mount points that are
> being backed up using mminfo?

mminfo is very flexible.  You may or may not want to see user created
backups.  You may or may not want to see incremental or incomplete
backups.  You may or may not want to see backups that have happened in
the distant past.

One problem is that the 'name' field in mminfo (normally the name of the
filesystem being backed up) can be overridden in the 'save' program.
You may not do this, but it is possible and you might want to watch out
for it.  If it's overriden, you can't get the info out of mminfo.

You could do this if you wanted to see the name of the client and the
name of the filesystem for all full backups in the past month...

% mminfo -a -t "last month" -q 'level=full' -r 'client,name' | perl -lne
'$h{$_}=1; END { print join("\n",sort keys %h); }'

Normally you'll get one line in mminfo for every unique entry in your
report (this one would be save sets).  Since you might have several
backups of the same filesystem, I just ran it through a perl filter at
the end to remove duplicates and sort the list alphabetically.


--
Darren Dunham                                           ddunham AT taos DOT com
Unix System Administrator                    Taos - The SysAdmin Company
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>