[SunHELP] Copying data from one server to another

Dale Ghent daleg at elemental.org
Wed Feb 20 13:24:11 CST 2002


On Fri, 15 Feb 2002, Simoncini, Matthew wrote:

| 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.

If you have ssh (or rsh - ick!) running on the two systems in question,
you can do a tar racross the network, like so:


system1# cd /large_filesystem; tar cf - . | ssh root at system2 "cd
/new_filesystem && tar xf -"

This will copy the filesystem on system1 across the network to system2
using piped tar.

/dale



More information about the SunHELP mailing list