LinuxQuestions.org
Visit Jeremy's Blog.
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 01-21-2006, 01:33 PM   #1
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Rep: Reputation: 15
moving files


I want to trasnfer some huge files to one server from another. One of the server has not website to it so I can't 'wget' the file in any way.

I heard of this thing called scp where you can trasfner files from one server to another server.

If this way is true how do I do it and or if their is another command where I can trasnfer some huge files to one server to another server.

PLEASE HELP!
 
Old 01-21-2006, 01:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it all depends what is available on each server as to how you can move files. I can reveal that the mythical scp is actually true.. huzzah. if you can ssh between servers, you can also use scp or sftp as parts of ssh. check the scp manpage for details of its use.
 
Old 01-21-2006, 11:45 PM   #3
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I tried the scp but it didnt work I did this for the starting command

Scp -i said command cant be found
 
Old 01-22-2006, 12:07 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
NFS or DD

There is a post called "Learn The DD Command" not too far buried in this forum. It is probably the most viewed post, other than sticky posts, and describes a method to transfer between servers using "dd" and "netcat". I believe the steps are as follows:

On file host:

<dd if=/home/sam/bigfile | netcat (destination IP) (destination port)

On remote machine:

netcat -l -p (port) | dd of=/home/sam/newbigfile

Hit enter on the remote machine first, then hit enter on the file's host.

You can also use NFS, but it needs to be installed. There are many tutorials on setting up NFS. This is one of them:

http://www.tldp.org/HOWTO/NET3-4-HOWTO.html

You have to look around a little in the howto, but it's in there. The setup is relatively simple, and the entire process takes about 20 minutes to learn and do. Then you can mount the NFS share and copy from it with "cp".
 
Old 01-22-2006, 01:32 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well you said "Scp" not "scp"... it is case sensitive so if you did what you say you did then that would fail.
 
Old 01-22-2006, 01:39 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
man scp thats how i found out about it to copy on my local network, till i setup NFS.

Reading the man page will tell you all the switches and format of the command.

if it cant be found then as above, it's case sensitive.

If scp still doesn't work then try locate/slocate scp as it may not be in your path for some reason
 
  


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
Moving files Pyrophorus Slackware 5 11-09-2005 10:47 AM
Moving files UmneyDurak Fedora 4 08-28-2005 05:52 PM
moving files pantera Programming 2 08-23-2005 05:58 AM
Moving Files arockia Linare 3 09-08-2004 08:14 AM
Moving Files jhotchkiss Linux - Newbie 5 09-16-2003 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:17 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
Open Source Consulting | Domain Registration