Current location: Hot Scripts Forums » Other Discussions » Web Servers » Handy Tip - move files from server to server


Handy Tip - move files from server to server

Reply
  #1 (permalink)  
Old 12-24-08, 09:10 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Handy Tip - move files from server to server

I hope this saves someone as much time and trouble as it did for me....
Linux servers only, Windows users will have to find an alternate way.

I had about 100G of video files that needed to be moved from one server to another. I didn't want to download them all and then re-upload them to the new server, as that would have taken about a week.

I used SSH to copy the files directly from server to server at full network speed (100Mb or better) and it worked like a charm. It transferred 100G of files in about 10 minutes. Log into the target or destination box (where the files will come to) and run the following command.

Here's the syntax (from the SSH command line):
scp user@host:directory/SourceFile TargetFile

Example:
scp -r someuser@actual.servername.net:/path/to/destination/

(a password prompt for the sending server will appear when you run this)
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php download script for files hosted on remote server SlaveDriver Script Requests 0 09-12-08 11:08 AM
Download script not sending file size to header & corrupt files since using remote file server SlaveDriver PHP 0 09-12-08 10:26 AM
Browser wants to download -- not display -- HTML files from my server mangled Web Servers 5 01-20-07 02:39 PM
How to copy files from remote server to local server without using ftp connection... ajay007_bond PHP 5 06-15-05 11:35 PM
move files around an ftp server, with php file upload script? wapchimp PHP 2 12-19-04 08:27 AM


All times are GMT -5. The time now is 09:24 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.