From: Peter Mayne <peter.mayne@cao.mts.dec.com>
Subject: Re: q: vdump : multiple domains and ufs disks
Date: 1996/05/09 [thread overview]
Message-ID: <3191AA2F.517D@cao.mts.dec.com> (raw)
In-Reply-To: 4mnh8c$r5v@northshore.shore.net
Martin Hannigan wrote:
>
> I have a question regarding vdump. In the man pages, it never says that
> I can't backup more than one file system per tape, but it seems like
> that is the reality..
>
> bkup.sh
>
> [ relevant portions only ]
>
> I intitialize some stuff..
>
> OPTION="-N -D -v -u -f "
> TAPE="/dev/rmt0h"
There's your problem.
> Then I do some day of the week checking..Mon..Fri=level..
>
> Then I exec vdump:
>
> /sbin/vdump -$LEVEL $OPTION $TAPE /var
> /sbin/vdump -$LEVEL $OPTION $TAPE /usr/data
> /sbin/vdump -$LEVEL $OPTION $TAPE /usr/data2
> /sbin/vdump -$LEVEL $OPTION $TAPE /home/harp
You're using the rewind tape device. Every time you run vdump, it dumps the
filesystem, then rewinds the tape, so the next time you run vdump, it overwrites
what you just did.
Here's a version of a script I use to do single-user mode system backups:
#!/bin/sh
vdump -0f /dev/nrmt0h /
vdump -0f /dev/nrmt0h /usr
vdump -0f /dev/nrmt0h /var
mt rewoffl
Note the use of /dev/nrmt0h (the non-rewind device) rather than /dev/rmt0h. To
get to files other than the first one, see mt fsf.
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
--------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
I design Internet Service Providers. It's a job.
prev parent reply other threads:[~1996-05-09 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-07 4:00 q: vdump : multiple domains and ufs disks Martin Hannigan
1996-05-09 4:00 ` Peter Mayne [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