1830939 Members
2713 Online
110017 Solutions
New Discussion

RCP Syntax Struggle

 
SOLVED
Go to solution
Bill Brutzman
Frequent Advisor

RCP Syntax Struggle

I am trying to copy folders from server to server, both HP-Ux.

Before, I was copying from HP-Ux v10 to 11i v2
using commands like...

rcp -r /u3/WOOD bullwinkle:/u3/

This would copy all of the directories and files in "WOOD" to the bullwinkle box.

Now, going from 11i to v10 using the same command, rcp puts all of the stuff in

/u3/WOOD/WOOD when I really need it in
/u3/WOOD

I have tried it a few different ways without much luck. Suggestions would be appreciated
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor
Solution

Re: RCP Syntax Struggle

Hi Bill:

A recursive 'rcp' assumes that the destination directory does not already exist. Otherwise, you get what you got!

You could create a 'tar' archive (assuming that no largefiles are involved); copy the archive; and untar it too avoid problems like this.

If you have largefiles (or sparse files!) in your directory, use 'fbackup' and 'frecover' to achieve your goal.

Regards!

...JRF...
Jean-Yves Picard
Trusted Contributor

Re: RCP Syntax Struggle

Hello,

tried
rcp -r /u3/WOOD/* bullwinkle:/u3/

Jean-Yves
Bill Brutzman
Frequent Advisor

Re: RCP Syntax Struggle

.