View Single Post

   
  #8 (permalink)  
Old 01-16-2008, 10:34 AM
Frank Winkler
 
Posts: n/a
Default Re: Scripting help - copying modified files to another server

steeles wrote:

>find /home/dir -type f -exec scp {} serverB: \;
>
>I tried, it, it acutally copy files into "/" in server B, not those files
>supposed to be.


I suppose all the files ended up in a flat dir on serverB:home_dir ?

What about

cd home_dir
find . | cpio -dump /net/serverB/home_dir

where serverB:home_dir has to be NFS exported

Regards

fw
Reply With Quote