Administrator's blog

Building a Folder Sync with lftp and cron

  • Posted on: 4 May 2014
  • By: Administrator

The goal of this post is to track my progress in creating a sync between an FTP site and my home server.  The Server is running CentOS 6.5 minimal with apache2, PHP, mysql to host my test websites.  I also have a Netgear router running readyshare for an anonomoys FTP server for students to upload video files for me.  I want to make sure that I get any files put on the FTP onto a physical drive in the house so I'm creating a cron job to check the FTP folder every 5 minutes and sync with a local folder on the server.  

First I yum install lftp software: