* SUMMARY vdump / vrestore
@ 1998-07-31 1:21 Malcolm Condie
0 siblings, 0 replies; only message in thread
From: Malcolm Condie @ 1998-07-31 1:21 UTC (permalink / raw)
To: tru64-unix-managers
Dear ALL IN DU LAND,
Original query was:
I am writing some backup / restore routines, using vdump and vrestore. These
command are new to me, as is DU.
My test script, in ksh is basically:
vdump -0Cx 7 -f /dev/nrmt0h /
vdump -0Cx 7 -f /dev/nrmt0h /usr
vdump -0Cx 7 -f /dev/nrmt0h /usr/data1
vdump -0Cx 7 -f /dev/nrmt0h /usr/data2
No sweat with this and logging tells me all data is backed up. However, when
I check the tape or do the restore thing with:
vrestore -tvf /dev/nrmt0h >> afile
ALL I get is files from "/" . Apparently "/usr" "/usr/data1" and
"/usr/data2" are not on tape.
Does vrestore require specific fileset for each instance of command? or am I
just being a plonker and missing something obvious.
Greatfully received ANSWER from so many people:
Best summarised by Dr Tom Blinn. He writes:
The files are probably all there, but the way tape works is this:
You write a file to the tape, then when you stop, the tape drive writes out
a special block called a tape mark. Then if you don't rewind the tape but
instead open it again and write another file, then stop and close it, you
get a second file and second tape mark, and so on.
Your dump script writes four files, each followed by a tape mark. There is
a set of files, one per vdump command, in each file on tape.
Your vrestore command is only looking at the first file on the tape. To get
to the second file, you have to use the "mt" command:
# mt -f /dev/rmt0h rewind
# mt -f /dev/nrmt0h fsf 1
# vrestore -tvf /dev/nrmt0h >> afile
and you'll be seeing the files in the second file on the tape, and so on.
Read the mt reference page; it defaults to using tape unit 0, but I'm not
sure it defaults to "no rewind".
Thanks also to:
Robert Kubarych
Randall Cable
Rodrigo Poblete
Ian Mortimer
alan@nabeth
George Guethlein
Jim Belonis
Sandro Valencia
Greg King
Matthew Huff
Pirie Hart
Rodger Vaughan
Happy unixing to you all
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-07-31 1:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-31 1:21 SUMMARY vdump / vrestore Malcolm Condie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox