From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6c3e15f57c48568f X-Google-Attributes: gidfee84,public From: cdileo@forum.swarthmore.edu (Christopher DiLeo) Subject: Re: vdump/vrestore Question Date: 1997/07/25 Message-ID: #1/1 X-Deja-AN: 258736704 References: <869672911.17416@dejanews.com> <5r5g1l$1c@wrdiss1.robins.af.mil> Organization: The Math Forum Newsgroups: comp.unix.osf.osf1 > >I have an Alpha 1000 running DU 3.2c The crontab entry that backs up > >the > >system is as follows.. > > > >0 4 * * 2,5 /sbin/vdump -0 -N -u / > >0 8 * * 2,5 /sbin/vdump -0 -N -u /usr > >0 12 * * 2 /sbin/vdump -0 -u /data/spool > >0 12 * * 5 /sbin/vdump -0 -N -u /data/spool > >15 12 * * 5 /sbin/vdump -0 -u /data Here is how I handle restores: 1) mt -f /dev/nrmt0h rewind 2) Now you have to figure out where on the tape what you want is located, and fast forward as many files as necessary. First, about how stuff is stored on the tape: The filesystems are dumped in this order: 1. / 2. /usr 3. /var 4. /data/spool 5. /data/spool 6. /data 3) And so let's say you need to back up from the first /data/spool...simply give the command: mt -f /dev/nrmt0h fsf 3 (fast forward one less than the fileset you want to back up) 4) Then either vrestore the file: vrestore -xf /dev/nrmt0h _or_ Do an interactive restore: vrestore -if /dev/nrmt0h The interactive restore will show you what you can restore and stuff on the current filesystem. I like this one best because you can see what you are doing as opposed to just getting a silly error if you mess up on the regular restore. You can navigate through the fileset like you were moving through directories and when you find the file you want to restore enter: add Once you are done adding (you can put as many on the queue for one fileset as you'd like) type: restore and then you will back the files into the directory you were in when you started the restore. 5) If you are going to be putting more backups on the tape, you need to fast forward to the end of the tape by: mt -f /dev/nrmt0h seod I hope this helps. christopher dileo ------- sysadmin the math forum swarthmore college -------