From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4d7fdf64aab70f14 X-Google-Attributes: gidfee84,public From: arno@antares.utu.fi (Arno Hahma) Subject: Re: HOW to use vdump Date: 1997/12/22 Message-ID: <67lu10$4g2@antares.utu.fi>#1/1 X-Deja-AN: 309332283 References: <349E603A.41C6@ms3.hinet.net> Organization: University of Turku, Finland Newsgroups: comp.unix.osf.osf1 In article <349E603A.41C6@ms3.hinet.net>, test account 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