how to sync ftp folder with local folder?

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.


The script you are searching for might be FTPSync.