09-27-2009, 12:40 PM #1Web Hosting Guru
- Join Date
- Jul 2006
Need some expert advice with FTP please
Seems "stupid" but I have a good reason to do the following but simple struck a blank after tried many times for many hours.
I want to connect to a plain shared hosting account on server A, fetch a file from dedicated server B and download it from server A.
Several gigs of backups on server B that I want to download to my PC on monthly base BUT
Server B is international and 5 times slower than local server A
Connection to server B is being capped and EXPENSIVE
So I obtained a shared hosting account on a LOCAL server A with the aim to copy the backups from server B to server A and then download it from server A.
(Our ADSL is capped at 5GB per month per ADSL account for international access with 30GB free local access and just to give you an idea of the word "EXPENSIVE" above it cost maybe R2000 for 5000GB of bandwidth on international servers but the same bandwidth on local servers would cost R600 000.)
Any idea how I can copy the files from server B direct to server A?
(Don't have shell access on server B. Tried for example wget in a shell script but it don't execute)Frank Coetzee
SA Internet News Group cc
"I hear and I forget, I see and I remember. I do and I understand. " - Chinese Proverb
09-27-2009, 01:22 PM #2Web Hosting Evangelist
- Join Date
- Feb 2006
- San Francisco, California
Not sure what kind of access you do have etc, but you maybe can make a cron to run a small script that will SCP the data to the other server?
Otherwise if you only have FTP access if it's windows you can use something like Uranium Backup to automatically access and download an FTP folder on a schedule.█ Larry Bly
█ Sandbox IT Solutions, LLC.
█ Dedicated Servers - Web Hosting - Consulting Services
09-27-2009, 09:11 PM #3Retired Moderator
- Join Date
- Feb 2005
So you don't have shell access to either server? If you have ssh on either one (or can get it) that would be the way to go. It is possible to set up scp or rsync over ssh using only cgi scripts but it's a PITA, and may still need more access than you have, eg. to change ssh ports.
Your problem using wget is most likely because you're not being given access to the wget binary (it's commonly used in server exploits). However your shared host might offer you an alternative like a renamed wget command - it's worth asking. Or you could try lwp-request or even upload your own wget binary from a similar system.Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter
09-28-2009, 04:17 AM #4server automation specialist
- Join Date
- Apr 2009
Try FXP mode of transfer in ftp. You need to ensure that both serverA and serverB supports the protocol in ftp.James B
█Ezeelogin█ Setup your Secure Linux SSH Gateway.
█|Manage & Administer Multiple Linux Servers Quickly & Securely.
By jeffinj in forum VPS HostingReplies: 8Last Post: 09-11-2007, 11:34 PM
By ASPdotNET4 in forum Hosting Security and TechnologyReplies: 4Last Post: 07-25-2007, 12:33 PM
By MichaelN2006 in forum VPS HostingReplies: 9Last Post: 12-23-2006, 09:50 AM
By Blackman in forum Web HostingReplies: 10Last Post: 04-18-2002, 08:03 PM
By aingaran in forum Reseller HostingReplies: 10Last Post: 07-21-2001, 03:50 AM