how to sync ftp folder with local folder?

6,391

Solution 1

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

Solution 2

The script you are searching for might be FTPSync.

Share:
6,391

Related videos on Youtube

GSto
Author by

GSto

Updated on September 18, 2022

Comments

  • GSto
    GSto almost 2 years

    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.

  • mweber
    mweber about 13 years
    ... or rsync (which is used by unison)
  • somasekhar
    somasekhar about 13 years
    rsync does not sync in two ways I think.
  • mweber
    mweber about 13 years
    No, it doesn't. But for this case it is not necessarily needed. I just wanted to add it ;)
  • somasekhar
    somasekhar about 13 years
    Right, in this case a rsync --delete would do the trick.
  • Peachy
    Peachy almost 12 years
    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.
  • Matthias Weiler
    Matthias Weiler almost 12 years
    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.
  • Clément
    Clément about 7 years
    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
    Clément about 7 years
    The page moved to savannah.gnu.org/projects/ftpsync and there's a git repository : git.savannah.gnu.org/cgit/ftpsync.git