LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   moving files from command line from server A to server B (https://www.linuxquestions.org/questions/linux-server-73/moving-files-from-command-line-from-server-a-to-server-b-665227/)

graziano1968 08-25-2008 08:32 AM

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

Uncle_Theodore 08-25-2008 08:36 AM

Quote:

Originally Posted by graziano1968 (Post 3258970)
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.

dipuasks 08-25-2008 10:14 AM

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.

trickykid 08-25-2008 10:23 AM

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.


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