[SunHELP] Copying data from one server to another

chad kellerman ckellerman at alabanza.com
Wed Feb 20 14:00:16 CST 2002


you can do this:

cd /export/home       #Or where ever

#for i in *
do
echo $i
tar -cpf - $1 | ssh <ipaddress of new server> 'tar -C /export/home -cpf -'
done


 if you like bash scripting.  I like, this is the way I do it if I can't mount the drives on another server.

-chad 


On Thu, 21 Feb 2002 06:01:29 +1100
Chris Barnes <Chris_Barnes at rams.com.au> wrote:

> This is just a guess but maybe the scp command might help you.
> It may allow you to simply copy the data from one machine to the other.
> 
> --
> 
> -----Original Message-----
> From: Simoncini, Matthew [mailto:Matthew.Simoncini at bsci.com] 
> Sent: Saturday, 16 February 2002 5:45 AM
> To: 'sunhelp at sunhelp.org'
> Subject: [SunHELP] Copying data from one server to another
> 
> Hello all,
> 
> I have a quick question that I'm sure someone can answer.
> 
> I have a large filesystem (~20 - 25 gig) that I need to copy to another
> server. What is the best way to get the data from one server to another?
> Normally, I would just tar the directory up and ftp it to the necessary
> server, but unfortunately, I don't have the space to do that. I don't have
> any tape drives available for this exercise either, so I can't dump it to a
> tape and restore it.
> 
> I'm sort of new to Unix, so any help is greatly appreciated.
> 
> Thanks.
> 
> Matthew
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 
> Searching for "A Better Way" to a home loan ?. Call RAMS on 13 7267, or go to http://www.rams.com.au
> 
> The e-mail and any attachments may contain confidential information.  If you receive it in error you must not use or disclose the information. You must tell us and delete it. We do not waive any legal privilege by sending it. RAMS does not promise that the email is free from virus defect or error.
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list