Can you FTP files from one server to another?

10 replies
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?
#files #ftp #server
  • Profile picture of the author mywebwork
    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

    {{ DiscussionBoard.errors[581972].message }}
  • Profile picture of the author Curtis007
    Hey thank you, I will look into using php. Yeah then a cron to automate.
    Hopefully it wont be too complex to set up.
    {{ DiscussionBoard.errors[582042].message }}
  • Profile picture of the author harrisunderwork
    Using copy function of php and automating via cron job it can be done.
    {{ DiscussionBoard.errors[588573].message }}
    • Profile picture of the author mojojuju
      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.


      {{ DiscussionBoard.errors[588794].message }}
  • Profile picture of the author harrisunderwork
    @mojojuju Good stuff buddy.
    {{ DiscussionBoard.errors[589248].message }}
  • Profile picture of the author firenichi
    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
    {{ DiscussionBoard.errors[9132083].message }}
  • Profile picture of the author Mr Bill
    CuteFTP will do it. Drag and drop from one window to another. Filezilla won't.
    {{ DiscussionBoard.errors[9132767].message }}
  • Profile picture of the author jimkey
    If you are on linux check scp or rsync

    Real People - Real Wins

    {{ DiscussionBoard.errors[9137507].message }}
  • Profile picture of the author firenichi
    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.
    {{ DiscussionBoard.errors[9144155].message }}
  • Profile picture of the author ussher
    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)


    "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."

    Download Jamroom free: Download
    {{ DiscussionBoard.errors[9151289].message }}

Trending Topics