Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCP, NFS, Netcat Tar Pipe

Status
Not open for further replies.

bambock

Programmer
Oct 26, 2005
60
US
Hey Everyone,

I am working on developing a script to copy data from one system to another across our gig backbone, and I thought I'd ask to see if anyone had a preferred method of accomplishing a task like this.

Options I've considered:
[ol]
[li]mount nfs filesystem and copy data over and umount the filesystem.[/li]

[li]use scp with recursion.[/li]

[li]use find, tar, and netcat and coordinate a tcp listener on the remote host.[/li]
[/ol]
 
Hi bambock,

I like and always use the following command:

Code:
cd /Dest_dir

rsh Source_hostname 'cd /Source_dir; find . -print | backup -ivf -' | restore -iqvpf -

You have to off course set up rsh connectivity first (or else you might have to consider ssh for security issues)

I assume since you were trying to use scp then your ssh is alreayd set up so its easier to go directly to ssh instead of rsh!

Now all of this depends as well on whether you focus on speed (shortest time) or security.

Regards,
Khalid
 
I've always used rsync/rdist for this kind of task.

if this is a one time deal then i suppose any one of your options would work...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top