[comp.unix.ultrix] HELP!!!

bemery@nmsu.edu (Bryan Emery) (09/11/90)

I am in desperate need for some advice about cpio.  If you cannot respond
by 9/11/90 it will be too late:

In preparing for installation of Ultrix 4.0, I did a backup via cpio as 
follows:
     find . -print | cpio -voBc > /dev/nrmt0h
this was to create a backup of two disks (RZ55 and an RZ23) to TK50.  At
the time, it appeared to work fine.  Now under Ultrix 4.0, if I do:
    cpio -viBct < /dev/nrmt0h
the files appear to be there and even sizes show up.  This, by the way,
is across multiple tapes (four to be exact).  But, when I do:
   cpio -viBcdum usr2/* < /dev/nrmt0h
the only files I get appear to be files that ALREADY EXIST on my disk drive.
To compound my problem, my RZ23 disk went south on me and had to be replaced.
This disk was mounted as /usr2 and is where all of the missing files were.
Naturally, this is data that is vital and I'm already a week behind schedule
messing with this.  Because this is a newly formatted drive, none of the files
that I need off of the backup currently exist.

As it takes about three hours to make one pass through the four tapes, you can
imagine that I am quite frustrated by now.  DEC has been of little help.  Any
suggestions????

Because I was unsure of the cpio command, I also did a 'tar' backup of the
user files only.  Yet even it gives me an error.  I thought doing backups was
to provide a 'safety-net'.

Bryan Emery

grr@cbmvax.commodore.com (George Robbins) (09/11/90)

In article <135@opus.NMSU.Edu> bemery@nmsu.edu (Bryan Emery) writes:
> 
> In preparing for installation of Ultrix 4.0, I did a backup via cpio as 
> follows:
>      find . -print | cpio -voBc > /dev/nrmt0h
> this was to create a backup of two disks (RZ55 and an RZ23) to TK50.  At
> the time, it appeared to work fine.  Now under Ultrix 4.0, if I do:
>     cpio -viBct < /dev/nrmt0h
> the files appear to be there and even sizes show up.  This, by the way,
> is across multiple tapes (four to be exact).  But, when I do:
>    cpio -viBcdum usr2/* < /dev/nrmt0h
                 ------/^\-------  (eh?)
> the only files I get appear to be files that ALREADY EXIST on my disk drive.
> To compound my problem, my RZ23 disk went south on me and had to be replaced.

The * in the regular expression above will be expanded to only those names
in your current usr2 directory.  Perhaps if you escape it, it will do what
you want.  The seems to be a confused example in the man page that may
have given you the wrong idea.

> Because I was unsure of the cpio command, I also did a 'tar' backup of the
> user files only.  Yet even it gives me an error.  I thought doing backups was
> to provide a 'safety-net'.

Yeah, but you need to test the net before the moment you need to leap.

Number one suggestion is don't bother with cpio(1) on a BSD derived system.
Use dump/restore when your main concern is backup, tar if you want the
backup a little more visible or transportable to other systems.

-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr@cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)
-- 
George Robbins - now working for,     uucp:   {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing:   domain: grr@cbmvax.commodore.com
Commodore, Engineering Department     phone:  215-431-9349 (only by moonlite)