Networker

Re: [Networker] mminfo, clone and stage

2005-07-12 10:14:14
Subject: Re: [Networker] mminfo, clone and stage
From: "Harald A. Irmer" <Harald.Irmer AT ATIS.UNI-KARLSRUHE DOT DE>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 12 Jul 2005 16:11:36 +0200
Hi Hans,

you could write a script like this - adapt file names etc. :


#!/usr/bin/bash

#the clones
mminfo -avV -omt -r'ssid, cloneid' -q'family=disk, copies>1' | awk '{ print $1"/"$2 }' > DELETE_COPIES.ssid

#delete media db entries of copies
for i in `tail +2 DELETE_COPIES.ssid`; do nsrmm -y -d -S $i; done
rm DELETE_COPIES.ssid

#delete files on disk which no (more) media db entry
for V in <list of file type volumes> ; do nsrstage -C -V $V; done

#has no clones - to be staged
mminfo -avV -omt -r'ssid' -q'family=disk, copies=1' | nsrstage -d -b"Incremental Stage" -m -S -f -

exit


Yours,

Harald


Hans Ericson wrote:



Hi Networkers,



How can i get Networker to pipe ssid and cloneid into a file with the right
format ( ssid/cloneid ).



I'm doing a clone first and then want to stage the data from disk volume but
not the cloned data on tape.



Best regards

Hans




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


Harald Artur Irmer
--
Harald A. Irmer
ATIS - Abteilung Technische Infrastruktur

University of Karlsruhe         Email: Harald.Irmer AT atis.uni-karlsruhe DOT de
Faculty of Computer Science     WWW  : http://atiswww.ira.uka.de
Building 50.34 Room-No. 009
Am Fasanengarten 5              Fon  : +49 (721) 608-6963
D-76131 Karlsruhe / Germany     Fax  : +49 (721) 608-6699

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

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