
10-23-2009, 08:58 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Jun 2008
Posts: 38
|
|
Transfer Large Many Files From Server To Server - How? Please Help!
Hi,
In reference to my previous post, i want to tranfer accross 7GB of data, approximatly 80,000 files i believe it is (due to a gallery script).
It's currently on another host (on a webhosting account) which uses their own control panel which has no options but to manage databases, the only way i can see to do this is via FTP but it'll take me days. I've tried using compressing and backup scripts, but the damn execution time on the hosts server is too low to allow the files to be zipped. Are there any ways? Can i login to my VPS via SSH and anyhow pull off the files from the other hosts server?
Thanks alot!
|

10-23-2009, 09:09 PM
|
|
Community Leader
|
|
Join Date: Oct 2002
Location: cognito
Posts: 17,439
|
|
Yes, you can use scp, rsync or even FTP from server to server through shell. Rsync would be the simplest, I believe. From the gaining server:
Code:
rsync -aqz "ssh -p PORT" root@HOST:/home/USER/public_html/ /home/USER/public_html
Where:
PORT = the SSH port on the old server.
HOST = the IP address (or hostname) of the old server.
USER = the account username, which is the same on both the old and new servers.
__________________
Have problems (don't we all)? Head over to the help desk
If at first you don't succeed, that's one data point.
|

10-23-2009, 09:23 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Jun 2008
Posts: 38
|
|
Quote:
Originally Posted by bear
Yes, you can use scp, rsync or even FTP from server to server through shell. Rsync would be the simplest, I believe. From the gaining server:
Code:
rsync -aqz "ssh -p PORT" root@HOST:/home/USER/public_html/ /home/USER/public_html
Where:
PORT = the SSH port on the old server.
HOST = the IP address (or hostname) of the old server.
USER = the account username, which is the same on both the old and new servers.
|
Hi,
Thanks. But one thing. Do i enter this into my VPS shell? Also, my webhosting account (where i need the data from) doesn't support SSH or anything. Pretty silly. The only thing i've seen work is FTP.
Could you please show me the FTP method? And elaborate a little more, on the steps i can do it at.
Thanks so much!
|

10-23-2009, 09:34 PM
|
|
Junior Guru Wannabe
|
|
Join Date: Jul 2009
Location: Singapore
Posts: 50
|
|
CentOS? Check out lftp, it can be made to run in the background (on your VPS).
1. Put this into a new file, e.g. download.bsh (and replace those "variables" in <>)
Code:
#!/bin/bash
lftp -c "open -u <USR>,<PWD> <FTP_HOST>
set ftp:ssl-allow no
mirror <REMOTE_PATH> <LOCAL_PATH_IF_NOT_CURRENT_DIR> &
quit"
2. chmod u+x download.bsh
3. ./download.bsh
You can grab lftp for CentOS from here: http://dag.wieers.com/rpm/packages/lftp/
Good luck.
Last edited by ConceptLane; 10-23-2009 at 09:37 PM.
Reason: Realised poster's intention is to download, not upload
|

10-23-2009, 09:36 PM
|
|
Aspiring Evangelist
|
|
Join Date: Mar 2003
Location: Saint Joseph, Missouri
Posts: 439
|
|
All,
You can also run any process in the background by simply putting "&" after the command. Use the command "fg" to bring the once backgrounded process back to the foreground.
Also you can install the program "screen" to allow you to run multiple background processes and "reattach" to them later.
Cheers!
__________________
=> Admo.net Web Services, LLC
=> Managed Hosting Dedicated Servers SolusVM VPS vmware ESX VM's
=> Located in Kansas City's Largest Carrier-Neutral Facility
=> Over Twelve Years of Service
|

10-23-2009, 09:52 PM
|
|
******* Unleaded
|
|
Join Date: Feb 2004
Posts: 3,790
|
|
You could also use wget in mirror mode if there is an index file it can get at.
|

10-23-2009, 11:24 PM
|
|
Web Hosting Master
|
|
Join Date: Dec 2007
Posts: 609
|
|
You could also use scp
scp [FILENAME] root@IPADDRESS:/directory/on/remoter/server/
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|