From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Subject: Re: Newbie questions on dump
Date: Thu, 19 Aug 1993 22:01:29 GMT [thread overview]
Message-ID: <1993Aug19.220129.21614@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 14966364@MVB.SAIC.COM
In article <14966364@MVB.SAIC.COM>, matthews@apg5.saic.com (Cameron H. Matthews) writes:
> [ Having discovered how to put multiple dumps on a single tape the
> the customer now wishes to get listing of what is on each dump... ]
>
>
>To list the files:
>
>$ restore -t -f /dev/nrmt0h
>$ mt fsf 1
>$ restore -t
>
>Is there a better way?
Not really. The problem is that the archive is roughly in two parts; the
directory and the data. The -t options reads up to the end of the
directory part and stops. If there is any data, you have to skip
over it to get to the next dump. If the dump was empty, some versions
will leave you at start of the next dump and the mt trick won't work
consistently.
A solution might be to add an option that will have restore read the
directory and skip to the beginning of the next dump. Decent tape
drives with a fast file mark search and good software support can
make this a reasonably fast operation. An alternate solution might
be to add an option to restore to say "read all the directories until
EOT". Finally, you could just change the behaviour of -t to read the
rest of the archive.
I don't know what assumptions that may break, if any.
An alternate to the mt(1) is dd(1), but I suspect mt is easier.
>
>Thanks for your responses, Allan.
>
>Cameron
>
>
--
Alan Rollow alan@nabeth.cxo.dec.com
prev parent reply other threads:[~1993-08-19 22:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-08-18 19:56 Newbie questions on dump Cameron H. Matthews
1993-08-18 21:23 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-08-19 17:25 ` Cameron H. Matthews
1993-08-19 22:01 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds. [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox