LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-16-2007, 10:59 AM   #1
nmrname
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
server to server file transfers


Being new to Linux I'm trying to transfer files from one server to another. What is the best way of doing this? I tried using the cp and mv command but cannot figure out how to designate the server name in the transfer. Any help would be greatly appreciated.
 
Old 08-16-2007, 11:35 AM   #2
rwazar
LQ Newbie
 
Registered: Aug 2007
Distribution: RH*/SuSE*
Posts: 21

Rep: Reputation: 15
cp and mv are for moving files locally. These could only be used if you mounted a share from the other server onto a local directory. Which, by the way wouldn't be a bad way of transferring files if you know how to set one up. Otherwise setting up an ftp server on the "to" server would probably be your best bet. Either that or a USB drive would be the simplest method if this was just a one time deal.
 
Old 08-16-2007, 11:41 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,817

Rep: Reputation: 609Reputation: 609Reputation: 609Reputation: 609Reputation: 609Reputation: 609
no. use scp or rsync.
 
Old 08-16-2007, 11:54 AM   #4
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Agreed scp, this requires both machines have ssh installed (which any self respecting Linux distro will have)and configured. An example of a copy from one machine to another.

Code:
scp user@ip:/path/to/what/I/want /put/it/here/on/this/machine
hth

Last edited by lord-fu; 08-16-2007 at 12:17 PM. Reason: typo
 
Old 08-16-2007, 01:13 PM   #5
nmrname
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Is this correct?

Quote:
Originally Posted by lord-fu View Post
Agreed scp, this requires both machines have ssh installed (which any self respecting Linux distro will have)and configured. An example of a copy from one machine to another.

Code:
scp user@ip:/path/to/what/I/want /put/it/here/on/this/machine
hth
I want to move a file from the rcs1 server to my current location on rcs2 in dir /ibm_utils. Is this correct?

scp root@rcs1:/root/ibm_utils/ibm_dsa_rh4_i386.bin ibm_utils/

Thanks for all the help ... this forum is great. I'm a one man shop just trying to stay afloat.
 
Old 08-16-2007, 01:38 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Yeah, that will work. The problem in your above example is the use of root. Being a one man shop, you are probably uniquely qualified to determine if allowing root over ssh is a good idea or not, but in general practice it's a nice saving feature to disable root over ssh. In your case, with a simple move, you could enable it, do your move, then disable it again, assuming you aren't moving stuff from one server to another every day. If that is the case, then you might want to consider using rsync instead and setting up 2 non-priv users to make the rsync arrangement.

Anyway, short answer, your above looks correct. If you don't need security for those specific transfers, ftp or rcp are also available.

-Chad
 
Old 08-16-2007, 01:44 PM   #7
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
ftp, tftp, scp there are tones of ways todo this
 
Old 08-16-2007, 02:02 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
tftp would seem to be more difficult than ftp, scp, rsync or rcp? I guess it depends on what they are transferring and how often, to what servers, but tftp just seems like the wrong tool for this case. How would you suggest they use tftp in this situation?

-Chad
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File server, print server inaccessible when change to new DNS tanveer Linux - Server 0 07-31-2007 04:21 AM
NT4 Server as File Server, Mandrake 10.1 - Email problems makennyno1 Linux - Networking 0 03-22-2007 05:46 AM
Proftp Server 60min timeout on large file transfers how cna i change this? methodh2k Linux - General 3 10-19-2005 09:39 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 07:21 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration