* vdump/vrestore Question
@ 1997-07-23 4:00 tim
1997-07-23 4:00 ` PAThomas
1997-07-24 4:00 ` John D. Brown
0 siblings, 2 replies; 4+ messages in thread
From: tim @ 1997-07-23 4:00 UTC (permalink / raw)
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
Which simply means every tuesday "/" then "/usr" then "/data/spool"
get
put on the same tape, and every friday, those plus "/data" get on a
single
tape (20GB tape drive, love it!)
Now, I have multiple volumes on one tape. my question is, how do I
restore one (or all) of the volumes other than "/" ? I can't seem to
access "/usr" "/data/spool" or "/data" even though I got good reports
from
syslog when they were backed up. I think in the future, I'll just do
one
file system per tape to make this easier, but if anyone has any ideas,
please let me know.
Tim Allen
tim@webbsight.com
I've tried...
dd if=/dev/rmt0h > file
but that still just dumps the data from the first fileset, "/"
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vdump/vrestore Question
1997-07-23 4:00 vdump/vrestore Question tim
@ 1997-07-23 4:00 ` PAThomas
1997-07-25 4:00 ` Christopher DiLeo
1997-07-24 4:00 ` John D. Brown
1 sibling, 1 reply; 4+ messages in thread
From: PAThomas @ 1997-07-23 4:00 UTC (permalink / raw)
I have not used vdump/vrestore, but I do use dump/restore and put multi
volumes/files on a single tape. You
can use the "mt fsf" command to forward to a specific volume/file on your
tape. You can look at the manpage for
mt for options.
PAThomas
tim@webbsight.com wrote in article <869672911.17416@dejanews.com>...
>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
>
>Which simply means every tuesday "/" then "/usr" then "/data/spool"
>get
>put on the same tape, and every friday, those plus "/data" get on a
>single
>tape (20GB tape drive, love it!)
>
>Now, I have multiple volumes on one tape. my question is, how do I
>restore one (or all) of the volumes other than "/" ? I can't seem to
>access "/usr" "/data/spool" or "/data" even though I got good reports
>from
>syslog when they were backed up. I think in the future, I'll just do
>one
>file system per tape to make this easier, but if anyone has any ideas,
>please let me know.
>
>Tim Allen
>tim@webbsight.com
>
>I've tried...
>
>dd if=/dev/rmt0h > file
>
>but that still just dumps the data from the first fileset, "/"
>
>-------------------==== Posted via Deja News ====-----------------------
> http://www.dejanews.com/ Search, Read, Post to Usenet
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vdump/vrestore Question
1997-07-23 4:00 vdump/vrestore Question tim
1997-07-23 4:00 ` PAThomas
@ 1997-07-24 4:00 ` John D. Brown
1 sibling, 0 replies; 4+ messages in thread
From: John D. Brown @ 1997-07-24 4:00 UTC (permalink / raw)
You must use the mt (move tape) command to the file set you want to read.
tim@webbsight.com wrote in article <869672911.17416@dejanews.com>...
> Now, I have multiple volumes on one tape. my question is, how do I
> restore one (or all) of the volumes other than "/" ?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vdump/vrestore Question
1997-07-23 4:00 ` PAThomas
@ 1997-07-25 4:00 ` Christopher DiLeo
0 siblings, 0 replies; 4+ messages in thread
From: Christopher DiLeo @ 1997-07-25 4:00 UTC (permalink / raw)
> >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 <filename>
_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 <filename-or-dirname>
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
-------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-07-25 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-23 4:00 vdump/vrestore Question tim
1997-07-23 4:00 ` PAThomas
1997-07-25 4:00 ` Christopher DiLeo
1997-07-24 4:00 ` John D. Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox