Networker

Re: [Networker] Scripting clones from adv_file devices

2006-03-31 15:34:03
Subject: Re: [Networker] Scripting clones from adv_file devices
From: Giles Malet <gdmalet AT IST.UWATERLOO DOT CA>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 31 Mar 2006 15:27:42 -0500
rgraves <rgraves AT CARLETON DOT EDU> writes:

>   mminfo -r ssid -q 'something=something,copies=1' | nsrclone -S -f -

Ignoring the rest of your question, bear in mind that the `copies'
includes *all* copies, including bad ones. So if you get a tape error
on a write, you end up with two copies, one bad, and you'll never get
a good clone.

You really need to look at the clflags (should be empty) to verify you
have good copies. Unfortunately, selecting ssids using mminfo with
flag combinations is er, problematic: you may need to parse the output
yourself, excluding non-empty clflags, and counting the remaining
copies (same ssid, different cloneid)..

gdm

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER