Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 6th Mar 2009, 11:28 PM   #1
Warrior Member
 
Join Date: 2009
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
Default
Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

If I wanted to transfer files from one server to another, can I do this via FTP? And can it be automated so one server transfers files to another once every month?

I am asking because I want to FTP datafeeds from my server every month to Googlebase. And I want it to be automated.

Any ideas?
Curtis007 is offline  
Unread 6th Mar 2009, 11:38 PM   #2
VIP Warrior
War Room Member
 
ereadergold's Avatar
 
Join Date: 2008
Location: Montreal Canada
Posts: 2,390
Thanks: 1,017
Thanked 836 Times in 572 Posts
Blog Entries: 1
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

You can do this with PHP. It can be a bit tricky as many shared hosts don't permit you to modify some of the security settings, however a good article about working around this can be found at PHP's FTP functions*tutorial.

Note that the PHP manual contains a lot of reference to FTP, however these are mostly geared to having PHP manage the receiving side. In your application you would use PHP as the FTP client, the quoted article explains how to do this.

Once you get it all working just use a CRON job to automate it.

Hope this helps

Bill
ereadergold is offline  
The Following User Says Thank You to ereadergold For This Useful Post:
Unread 7th Mar 2009, 12:19 AM   #3
Warrior Member
 
Join Date: 2009
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

Hey thank you, I will look into using php. Yeah then a cron to automate.
Hopefully it wont be too complex to set up.
Curtis007 is offline  
Unread 9th Mar 2009, 11:07 AM   #4
King Of Bots
 
harrisunderwork's Avatar
 
Join Date: 2009
Posts: 513
Thanks: 83
Thanked 56 Times in 44 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

Using copy function of php and automating via cron job it can be done.
harrisunderwork is offline  
Unread 9th Mar 2009, 12:22 PM   #5
VIP Warrior
 
mojojuju's Avatar
 
Join Date: 2005
Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

If you want to transfer files directly from one server to another and without those files touching your computer, then you should use FXP. You'll have to see if both servers support it because some servers have the FXP feature disabled.

Here's a good write up on FXP What Is FXP?

Don't bother scripting something to handle the transfers because you'd be reinventing the wheel. There's already a program called lftp that does everything you're asking for and tons more stuff.

:)
mojojuju is offline  
The Following User Says Thank You to mojojuju For This Useful Post:
Unread 9th Mar 2009, 03:29 PM   #6
King Of Bots
 
harrisunderwork's Avatar
 
Join Date: 2009
Posts: 513
Thanks: 83
Thanked 56 Times in 44 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

@mojojuju Good stuff buddy.
harrisunderwork is offline  
Unread 23rd Apr 2014, 08:05 PM   #7
Warrior Member
 
Join Date: 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

yes, you can. with the help of MultCloud, it is easy to do. Adding two ftp accounts in it please, more details please visit its office website or watch youtube videos
firenichi is offline  
Unread 24th Apr 2014, 01:09 AM   #8
VIP Warrior
War Room Member
 
Join Date: 2011
Posts: 1,632
Thanks: 1,211
Thanked 952 Times in 497 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

CuteFTP will do it. Drag and drop from one window to another. Filezilla won't.
Mr Bill is offline  
Unread 25th Apr 2014, 10:55 AM   #9
Warrior Member
 
Join Date: 2014
Location: Germany
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

If you are on linux check scp or rsync
jimkey is offline  
Unread 27th Apr 2014, 08:32 PM   #10
Warrior Member
 
Join Date: 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

Now, I think it is easy. adding two host's ftp account to a multi-cloud management application called MultCloud, then you can transfer files in one interface, beacuse MultCloud is a web-based application and 100% free.
firenichi is offline  
Unread 30th Apr 2014, 01:49 AM   #11
HyperActive Warrior
War Room Member
 
ussher's Avatar
 
Join Date: 2010
Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
Default
Re: Can you FTP files from one server to another?
Share on: 
fb share twitter share gplus share more share

If its a linux server, wget is an easy way to get a file from anywhere.

From the command line (or scripted via php or other)

'wget http://wherever.com/filename.zip'

"Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."
- jamroom.net
Download Jamroom free: Download
ussher is offline  
Closed Thread


Bookmarks

Tags
files, ftp, server


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 10:38 AM.