Operating System - HP-UX
1834221 Members
3022 Online
110066 Solutions
New Discussion

File and Directory Copy Help

 
SOLVED
Go to solution
Emil Henry
Regular Advisor

File and Directory Copy Help

Hello!

I am copying a large number of files and directories (home directories of users) to a new location on the same machine. I normally use the 2 commands below and as far as I remember it has not let me down in the past. Now to the problem. It is that the some of the usernames of the owners are not getting copied over. Am pretty "brain-dead" athe moment, and cannot figure it out. :-)

Thanks in advance,

Regards,

Emil

cd olddir
find . -depth -print | cpio -pd newdir
4 REPLIES 4
curt larson_1
Honored Contributor
Solution

Re: File and Directory Copy Help

you give to much detail in what is or isn't happening. So, here are some possibilities:

Because of industry standards and interoperability goals, cpio does not support the archival of files larger than 2GB or files that have user/group IDs greater than 60K. Files with user/group IDs greater than 60K are archived and restored under the user/group ID of the current process.

check to see if/which cpio patches you have installed.


Path names are restricted to PATH_MAX characters (see and limits(5) ). If there are too many unique linked files, the program runs out of memory to keep track of them. Thereafter, linking information is lost. Only users with appropriate privileges can copy special files.

If /dev/tty is not accessible, cpio issues a complaint and exits.

The -idr option does not make empty directories. I don't think the -p option creates empty directories either.



Emil Henry
Regular Advisor

Re: File and Directory Copy Help

Hi Curt!

You are exactly right about the UID being over 60K. The UID below are fine.

So, how do I copy them over?

Regards,

Emil
curt larson_1
Honored Contributor

Re: File and Directory Copy Help

i think tar, pax, and fbackup/frecover all have patches to support uid/gid >60k

you'll have to check that you have the appropriate patches installed for your version of the OS.
curt larson_1
Honored Contributor

Re: File and Directory Copy Help

i think tar, pax, and fbackup/frecover all have patches to support uid/gid >60k

you'll have to check that you have the appropriate patches installed for your version of the OS.