Operating System - HP-UX
1834415 Members
1617 Online
110067 Solutions
New Discussion

can append files and diretory using CPIO

 
Joon
Occasional Contributor

can append files and diretory using CPIO

Does anybody knows how to append files and directory using cpio?
please let me know showing examle.

thanks in adavance.
jooni
4 REPLIES 4
T G Manikandan
Honored Contributor

Re: can append files and diretory using CPIO

cpio does not support this feature.

Only tar & pax support this.
Vijaya Kumar_3
Respected Contributor

Re: can append files and diretory using CPIO

i think you can just tweak it....Do extract cpio to a temporary directory like /tmp/cpiotmp

then do a "cp -i" or "mv -i" to append.

You can even write a small script too.

-Vijay

Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Sanjay_6
Honored Contributor

Re: can append files and diretory using CPIO

Hi,

cpio does not support append mode.

Take a look at this thread,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000007949999

This same comparison is there in the sys admin manual too.

The doc id is CJW9304231450


Hope this helps.

Regds
T G Manikandan
Honored Contributor

Re: can append files and diretory using CPIO

Looks like the GNU version of cpio can work the way.

http://hpux.cs.utah.edu/hppd/hpux/Gnu/cpio-2.5/


check for the -A option.