Mac – Unix: How to one-way-sync directory with FTP directory

ftpmacsyncterminalunix

Is there a good command I can run from the Terminal that will one-way sync a directory with an FTP directory in a smart way?

I'd like it to for example delete all files on the FTP that no longer exist locally and to only upload files that are new or changed.

Any clues?

Note: Have tried to ask this before and was told rsync works with SFTP, which is good, but I have to work with a server that only supports FTP

Best Answer

You can mount an FTP host through fuse, much like sshfs.

curlftpfs -o allow_other ftp://myusername:mypassword@ftp.mydomain.com myftp

Once mounted, you can run rsync against it.

Related Question