[SunHELP] RE: RE: Copying data from one server to another

sunhelp at sunhelp.org sunhelp at sunhelp.org
Wed Feb 20 15:27:35 CST 2002


Thanks to all for your assistance, its really appreciated. Since I don't
have SSH (yet !), I chose to go the following route:

tar cvfp - . | (cd /<newdir>; tar xvfp -)

Thanks again !

Matthew

Message: 15
Date: Wed, 20 Feb 2002 15:00:16 -0500
From: chad kellerman <ckellerman at alabanza.com>
To: sunhelp at sunhelp.org
Cc: Chris_Barnes at rams.com.au
Subject: Re: [SunHELP] Copying data from one server to another
Organization: alabanza inc
Reply-To: sunhelp at sunhelp.org

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



More information about the SunHELP mailing list