I have a local folder, and I would like to sync it a folder on a web server via FTP . what is the best way to accomplish this? I would prefer to be able to do this via terminal, so that I can just have an 'update' command that would update the files on the sever.


You could mount it with curlftpfs and then sync it with unison.

  • 2
    ... or rsync (which is used by unison)
    – dAnjou
    Jun 14 '11 at 20:00
  • rsync does not sync in two ways I think. Jun 15 '11 at 15:56
  • No, it doesn't. But for this case it is not necessarily needed. I just wanted to add it ;)
    – dAnjou
    Jun 16 '11 at 9:44
  • Right, in this case a rsync --delete would do the trick. Jun 16 '11 at 10:04
  • A good tutorial on how to do that (it's not that complex, but it helps to have a guideline): raphael.li/tips/synchronize-ftp
    – Clément
    Apr 11 '17 at 17:03

The script you are searching for might be FTPSync.

  • 2
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
    – Peachy
    Sep 15 '12 at 10:25
  • I see that it would make sense in general, but in this case I recommend a program. What else should I write? Type "ftpsync.pl -h" to learn how to use it. Sep 17 '12 at 16:04
  • The page moved to savannah.gnu.org/projects/ftpsync and there's a git repository : git.savannah.gnu.org/cgit/ftpsync.git
    – Clément
    Apr 11 '17 at 17:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.