OT: cloning (copying) a HD over a network...

Kim Lux lux at diesel-research.com
Sat Apr 9 03:06:01 UTC 2005


That is a great idea.  I never even thought of rsync.  Thanks. 

I'd still like to hear of other ideas, just to learn what other people
think. 


On Sat, 2005-04-09 at 02:51 -0600, Dale Sykora wrote:
> Kim Lux wrote:
> > The hard drive is full on our server.  I can ssh into it from my
> > workstation.  I've got a formatted drive mounted on my workstation ready
> > to receive the server files.
> > 
> > How do I easily copy the server files to the workstation drive over our
> > network ?  Keep in mind that I need to preserve the file ownership,
> > permissions and dates.
> > 
> > If I had the new hard drive mounted on the server, I would use:
> > 
> > cp -aR /olddrive /newdrive >> logfile
> > 
> > I've tried using scp, but I cannot force it to preserve the file
> > attributes.
> > 
> > I've tried using sftp, but I don't think it is recursive and I can't
> > force it to preserve attributes.
> > 
> > I'm trying to use tar, but I can't figure out how to make it work across
> > a network.  FWIW, I have sshd enabled on the server, but not on the
> > workstation.  I don't have nfs enabled on the server.  Can I do this
> > without enabling it ? 
> > 
> > Any hints would be appreciated. 
> Kim,
> 	I would use rsync.  From the workstation something like the following 
> should work.
> 
> rsync -Pav --rsh=ssh root at your_server:/from_dir/ /to_dir/
> 
> replace user, server, from&to paths as appropriate
> 
> Thanks,
> 
> Dale
> 
-- 
Kim Lux,  Diesel Research Inc.





More information about the fedora-list mailing list