[comp.unix.xenix] Tar, cpio questions...

mitchell@cadovax.UUCP (Mitchell Lerner) (03/10/88)

286 SCO Xenix 2.2 running on a Wyse AT w/2.5meg and an Archive SC499
"long" controller card and a 60 MB Archive FastBack drive.

question 1:

if I do "tar cvf /dev/rct0" of a bunch of directorys and databases and
stuff, and restore it using "tar xvf /dev/rct0".  Will any of
the files attributes be modified (of specific interest is group and user
ownerships, and rwx permissions)?  

If so, which ones and how can I use tar so that it doesn't modify any of the 
files attributes (or at least just the ownerships and rwx permissions).

question 2.

I used to use "cat filepathes | cpio -ovcduBm > /dev/rct0" and 
"cpio -ivcduBm < /dev/rct0" for the above but this one group of data files
that an accounting application created (ISAM-like binary files) would 
take an error (error 5: can't read input) while reading the first
of these files.  I was able to duplicate this failure consistantly; always 
the same file.  Am I useing somthing wrong (I don't think so because
this is how we have been backups at work for a long time under System V.3) or 
could it be that cpio interprets it's input and is confusing itself (bug???)?  

Tar is able to backup and restore these files fine (tho, I'm not sure if 
it's changing any of the files attributes some), but I would like
to be sure that nothing important is being modified in the process.


Thanks!
-- 
Mitchell Lerner
UUCP:  {ucbvax,ihnp4,decvax}!trwrb!cadovax!mitchell

"When I fight with my mind, my mind always wins" - Ben Hummel