permission are good, I did just use sct in the tar cvf command. The exe directory is just one of the error, they all bomb. I am going to try the tar command one more time the your cpio thing
Main Topics
Browse All TopicsI tar'ed up a directory that is pretty deep with lots of directories and files underneath it.
tar -cvf sct.tar sct
but when I go to the server where I want to extract it at /u01/app
I get theses kinds of errors.
/u01/app/sct/banseed/gener
tar: u01/app/sct/banseed/genera
How should I tar this up and extract so that It makes the directories.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You need the "c" flag at both ends, to make sure the format is consistent. since you missed it out when creating the cpio file, you *could* try missing out the "c" when unpacking, but that will only work if the architectures of both ends are the same (little-endian/big-endian,
Business Accounts
Answer for Membership
by: simon3270Posted on 2009-11-06 at 03:23:48ID: 25758192
Is it a permissins problem? What are the permissions on the "exe" directory?
Also it looks as though it is trying to unpack u01/app/sct/..... - did you just use "sct" on the "tar" command line when you created the file, or did you specify /ou1/app/sct?
One problem with tar and permissions is that if you tar up a read-only directory, when you unpack it tar might create the read-only directory first, then try to write files into it. One solution is to use the "find" command to generate a list of files and directories, then use "cpio" to create the archive. The "-depth" parameter on "find" prints out the filenames in a directory before the directory name itself - then when you unpack the files, the "cpio" program creates the directory with default ownership when it is writing the files in the directory, then modifies the directory's permissions to the correct values when it gets to the directory entry itself.
So
find sct -depth | cpio -ocv -O sct.cpio
copy sct.cpio to /tmp on the other machine, cd to the /uo1/app directory, then
cpio -icvdum -I /tmp/sct.cpio
One thing to be aware of - if you use "find . -depth | cpio -ocv" (i.e. find from the current directory), then the outptu cpio file must be created outside the current directory (otherwise there is a danger that cpio might try to archive the output file into itself!