DLT Tape can not Restore

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: plug-discuss@lists.plug.phoenix.az.us
Date:  
Subject: DLT Tape can not Restore
I can backup to the DLT tape but I can not restore when I execute the
following command the cursor just sits there and the file is not
restored.


tar -xp /deleteme/etc.squid.tar


Jim



On Thu, 2003-08-07 at 07:16, Tom Ward wrote:
> wrote:
> =


> >I have found the following example in Essential System Administration =

Oreilly Press 3rd revision, page 736 although I have a question.
> >
> >Example =


> >tar -xp /home/chavez/freeway/1.data
> >cpio -imd '*1.data' < /dev/rmt0
> >end of example
> >
> >The books explanation of the example
> >The command restores the file /home/chavez/freeway/1.data from an arch=

ive made of /home located on the tape in the default tape drive. =

> >
> >When you execute the first command "tar -xp /home/chavez/freeway/data"=

how does the shell know that it should execute the tar command on the da=
ta on the tape drive? =96 I suppose because it looks at the default tape =
drive.
> >
> >for the 2nd command why is it necessary to have the "*" when only one =

file is being restored not all files that end with "data"? Also is the fi=
le restored to the current working directory or the location they were ba=
cked up from?
> >
> >
> >Jim
> >
> > =


> >
> Jim,
> =


> You're correct on the tar command. By default it looks at the first tap=

e =

> device. I've never used cpio, but it looks like the example is showing =


> the use of the -d switch. I don't think it's necessary to use *, that =


> full path should be okay, but the -d switch will create the leading =


> directories as needed. It looks to me like you could end up with more =


> than you want if there are other files that match the *1.data pattern.
> =


> Regards,
> Tom
> =


> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss