From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dd5ef86de5b9d3de X-Google-Attributes: gidfee84,public From: Peter Mayne Subject: Re: q: vdump : multiple domains and ufs disks Date: 1996/05/09 Message-ID: <3191AA2F.517D@cao.mts.dec.com>#1/1 X-Deja-AN: 153887144 references: <4mnh8c$r5v@northshore.shore.net> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation (Australia) mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.01I (WinNT; I) 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.