| | #1 |
| Warrior Member Join Date: 2009
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
|
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? |
| |
| | #2 |
| VIP Warrior War Room Member Join Date: 2008 Location: Montreal Canada
Posts: 2,390
Thanks: 1,017
Thanked 836 Times in 572 Posts
Blog Entries: 1 |
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 |
| |
| The Following User Says Thank You to ereadergold For This Useful Post: |
| | #3 |
| Warrior Member Join Date: 2009
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
|
Hey thank you, I will look into using php. Yeah then a cron to automate. Hopefully it wont be too complex to set up. |
| |
| | #4 |
| King Of Bots Join Date: 2009
Posts: 513
Thanks: 83
Thanked 56 Times in 44 Posts
|
Using copy function of php and automating via cron job it can be done.
|
| |
| | #5 |
| VIP Warrior Join Date: 2005 Location: Potemkin Village
Posts: 1,724
Thanks: 745
Thanked 742 Times in 498 Posts
|
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. |
|
:)
| |
| |
| The Following User Says Thank You to mojojuju For This Useful Post: |
| | #6 |
| King Of Bots Join Date: 2009
Posts: 513
Thanks: 83
Thanked 56 Times in 44 Posts
|
@mojojuju Good stuff buddy.
|
| |
| | #7 |
| Warrior Member Join Date: 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
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
|
| |
| | #8 |
| VIP Warrior War Room Member Join Date: 2011
Posts: 1,632
Thanks: 1,211
Thanked 952 Times in 497 Posts
|
CuteFTP will do it. Drag and drop from one window to another. Filezilla won't.
|
| |
| | #9 |
| Warrior Member Join Date: 2014 Location: Germany
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
|
If you are on linux check scp or rsync
|
| |
| | #10 |
| Warrior Member Join Date: 2014
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
| 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. |
| |
| | #11 |
| HyperActive Warrior War Room Member Join Date: 2010 Location: Tokyo
Posts: 314
Thanks: 27
Thanked 43 Times in 42 Posts
|
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." | |
| |
|
| Bookmarks |
| Tags |
| files, ftp, server |
| |