cpio restore not finding files

cpio restore not finding files

Post by kesk.. » Wed, 14 Jun 2000 04:00:00



From /, I did a full system backup using the following: find . -print |cpio
-ovB >/dev/rmt0 I need to restore all files and directories under a
particular directory so I used: cpio -ivBdmu "usr/lpp/CommerceSuite/macro/*"
</dev/rmt0 All I get back is the block count.  Any suggestions??

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

cpio restore not finding files

Post by Dell Colem » Thu, 15 Jun 2000 04:00:00



> From /, I did a full system backup using the following: find . -print |cpio
> -ovB >/dev/rmt0 I need to restore all files and directories under a
> particular directory so I used: cpio -ivBdmu "usr/lpp/CommerceSuite/macro/*"
> </dev/rmt0 All I get back is the block count.  Any suggestions??

Are you in / when you try the restore?
--
Dell Coleman


 
 
 

cpio restore not finding files

Post by Joerg Brueh » Thu, 15 Jun 2000 04:00:00


Hi N.N. !


> From /, I did a full system backup using the following: find . -print |cpio
> -ovB >/dev/rmt0 I need to restore all files and directories under a
> particular directory so I used: cpio -ivBdmu "usr/lpp/CommerceSuite/macro/*"
> </dev/rmt0 All I get back is the block count.  Any suggestions??

You used relative names at backup - well done.

But your names start './' (from "find . -print" - do a "cpio -itvB"
to verify), so a file name "usr/lpp/......." will never match.
IMHO, you should restore using
   cpio -ivBdmu "./usr/lpp/CommerceSuite/macro/*"
(note the leading './' in the parameter).

HTH, Joerg Bruehe

--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)

 
 
 

cpio restore not finding files

Post by Norman Levi » Thu, 15 Jun 2000 04:00:00




> > From /, I did a full system backup using the following: find . -print |cpio
> > -ovB >/dev/rmt0 I need to restore all files and directories under a
> > particular directory so I used: cpio -ivBdmu "usr/lpp/CommerceSuite/macro/*"
> > </dev/rmt0 All I get back is the block count.  Any suggestions??

> Are you in / when you try the restore?

double check syntax for cpio.  Looked like you were using the gnu cpio with wildcards on
restore side.  Not sure that his handled in posix version of cpio.
--
Norman Levin
 
 
 

cpio restore not finding files

Post by Joerg Brueh » Thu, 15 Jun 2000 04:00:00


Hi N.N. !


> From /, I did a full system backup using the following: find . -print |cpio
> -ovB >/dev/rmt0 I need to restore all files and directories under a
> particular directory so I used: cpio -ivBdmu "usr/lpp/CommerceSuite/macro/*"
> </dev/rmt0 All I get back is the block count.  Any suggestions??

You used relative names at backup - well done.

But your names start './' (from "find . -print" - do a "cpio -itvB"
to verify), so a file name "usr/lpp/......." will never match.
IMHO, you should restore using
   cpio -ivBdmu "./usr/lpp/CommerceSuite/macro/*"
(note the leading './' in the parameter).

HTH, Joerg Bruehe

--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
     (speaking only for himself)

 
 
 

cpio restore not finding files

Post by kesk.. » Sat, 17 Jun 2000 04:00:00




> Hi N.N. !


> You used relative names at backup - well done.

> But your names start './' (from "find . -print" - do a "cpio -itvB"
> to verify), so a file name "usr/lpp/......." will never match.
> IMHO, you should restore using
>    cpio -ivBdmu "./usr/lpp/CommerceSuite/macro/*"
> (note the leading './' in the parameter).

> HTH, Joerg Bruehe

> --
> Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
>      (speaking only for himself)


I was positioned at / when I tried the restore.  I have also tried
these:

cpio -ivBdmu "./usr/lpp/CommerceSuite/macro/*" </dev/rmt0
cpio -ivBdmu "/usr/lpp/CommerceSuite/macro/*" </dev/rmt0

The only thing returned is the block count.

Thanks

Kathie Eskins

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

cpio restore not finding files

Post by kesk.. » Sat, 17 Jun 2000 04:00:00


> Are you in / when you try the restore?
> --
> Dell Coleman


Yes. I was in / when I tried the restore.  On SVR4 this would have
worked.

Kathie Eskins

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

cpio restore not finding files

Post by kesk.. » Sat, 17 Jun 2000 04:00:00


OOOPS!!!
My mistake.  The syntax is correct for the restore. The directory is
really empty.  That is why all I got back was the block count.

Sent via Deja.com http://www.deja.com/
Before you buy.