1833124 Members
3548 Online
110051 Solutions
New Discussion

Re: cp, cpio commands

 
SOLVED
Go to solution
praveen..
Super Advisor

cp, cpio commands

Hi,
I have two file systems:
/temp1 and /temp2

size of each file systems is 1 TB,
/temp1 is 80% used and /temp2 is new file system and empty

I need to copy the data from /temp1 (which includes so many sub-directories also) to /temp2

which command should i use...cp or cpio?

please suggest
Thanks
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: cp, cpio commands

If none of the files exceed 2GiB then cpio is the better choice because it is much better at preserving modes than is cp -Rp.

For something this large, I would instead use an fbackup/frecover pipeline as that will handle largefiles (even sparse ones) and preserve all the attributes. This does assume that this is an HP-UX box.
If it ain't broke, I can fix that.
praveen..
Super Advisor

Re: cp, cpio commands

Thanks