* HOW to use vdump
@ 1997-12-22 5:00 test account
1997-12-22 5:00 ` Arno Hahma
0 siblings, 1 reply; 2+ messages in thread
From: test account @ 1997-12-22 5:00 UTC (permalink / raw)
HI,everybody
I had a stupid question about vdump
I want to use vdump to backup a whole HD data,
and I try to see manpage about vdump
and here is my method ..
#df
Filesystem 512-blocks Used Available Capacity Mounted
on
root_domain#root 293024 142130 138288 51% /
/proc 0 0 0 100% /proc
usr_domain#usr 1664368 983024 636976 61% /usr
jodmn#fset 1176320 546368 616368 47% /test
#vdump -0uf /dev/nrmt0h /
#vdump -0uf /dev/nrmt0h /usr
#vdump -0uf /dev/nrmt0h /test
now I use vrestore to see my backup result.
#vrestore -i
vdump seemed works fine.vrestore: Date of the vdump save-set: Mon Dec 22
14:45:10 1997
(/)
.:
#.mrg...login #.mrg..DXsession .Xauthority
.cshrc
.dt/ .dtprofile .login
.netscape/
.new...cshrc .new...login .new...profile
.new..DXsession
.profile .proto...cshrc .proto...login
.proto...profile
.proto..DXsession .sh_history
.sysman/ .tags
.xsession-errors DXsession bin
change_0861204
dev/ etc/
genvmunix home/
ip203 ip210
lib mdec/
mnt/ nsmail/ opt/
osf_boot
plat/ proc/ quota.group
quota.user
sbin/ shlib/
subsys/ sys/
tcb/ tmp/
usr/ var/
vmunix
(/)cd usr
(/usr) ls
nothing inside the usr directory..!!
also happened in /test directory!!
So my question is if my backup command is wrong..
and how to use vdump to backup a whole disk data and how to restore it
from tape.
thanks.
Vincent Huang
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: HOW to use vdump
1997-12-22 5:00 HOW to use vdump test account
@ 1997-12-22 5:00 ` Arno Hahma
0 siblings, 0 replies; 2+ messages in thread
From: Arno Hahma @ 1997-12-22 5:00 UTC (permalink / raw)
In article <349E603A.41C6@ms3.hinet.net>,
test account <vincent9@ms3.hinet.net> wrote:
>(/)cd usr
>(/usr) ls
>nothing inside the usr directory..!!
>also happened in /test directory!!
>So my question is if my backup command is wrong..
No, it is allright.
>and how to use vdump to backup a whole disk data and how to restore it
>from tape.
You did back up the whole disk. The trick is, that each vdump command
creates its own file on the tape, starting from zero. When you read
with vrestore, you read the first file, that is, the backup of / or
root directory only and you are seeing only the mount point directory
for /usr.
To get to the next file, repeat vrestore (with a non-rewinding device
node) or rewind/wind the tape to the appropriate file number. As a rule
of thumb, you need as many vrestore commands as you used vdump
commands.
With your script example, to restore /usr:
mt rewind
mt fsf 1
vrestore -i -f /dev/nrmt0h (or whatever tape device you are using).
>Vincent Huang
ArNO
2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-12-22 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-22 5:00 HOW to use vdump test account
1997-12-22 5:00 ` Arno Hahma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox