LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-25-2008, 08:32 AM   #1
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Rep: Reputation: 30
moving files from command line from server A to server B


Hello

I need to move a long list of files , for example

/public_html/images/1.jpg
/public_html/images/2.gif
/public_html/images/3.gif
/public_html/images/4.jpg
/public_html/images/5.gif
....
/public_html/images/1000.gif

FROM server A (linux) to server B (linux) which is the faster
way using the linux command line ?


Thank you
 
Old 08-25-2008, 08:36 AM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Quote:
Originally Posted by graziano1968 View Post
Hello

I need to move a long list of files , for example

/public_html/images/1.jpg
/public_html/images/2.gif
/public_html/images/3.gif
/public_html/images/4.jpg
/public_html/images/5.gif
....
/public_html/images/1000.gif

FROM server A (linux) to server B (linux) which is the faster
way using the linux command line ?


Thank you
I think, scp -r is quite fast.
 
Old 08-25-2008, 10:14 AM   #3
dipuasks
Member
 
Registered: Oct 2005
Location: India
Distribution: Redhat 7-9,Fedora Core 3 - 9, RHEL 4 -5, CentOS 4 - 5, Ubuntu 7.10 - 12.10, Mandirva 2008 -2009
Posts: 133

Rep: Reputation: 15
You may make a compressed archive (tar.bz2) before you move. The time you spend in making archive, will surely reward in terms of transfer time & bandwidth usage.

--Dipu
-------------------
I don't drink, I don't like it, it makes me feel too good.
 
Old 08-25-2008, 10:23 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
rsync would probably be better than scp, if it fails at any point, it will pick up where it left off so you don't start all over again. rsync also has a compress option to help speed things along during the transfer.
 
  


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
ftp to Linux server using One Line command shipon_97 Linux - Newbie 3 08-28-2007 04:46 AM
mySQL can't find files after moving to new server dbc001 Linux - Server 1 09-25-2006 12:19 AM
Reconfiguring X Server from command line Jongi Mandriva 1 04-10-2005 02:28 AM
Moving files from the command line adam-red Linux - Newbie 5 12-06-2004 04:42 AM
moving files and folders thru command line JROCK1980 Linux - General 2 02-16-2004 06:55 PM


All times are GMT -5. The time now is 05:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration