How to sync files to a ftp server with the use of ftpsync on FreeBSD

In the ports of FreeBSD I found a nice tool to sync a local directory to a remote FTP server.

First install ftpsync:

Next create a config file to configure ftpsync for synchronization:

Next you have two options for syncing…

Get-sync from server:

Put-sync to server:

You can add the -p flag to not-prune directories on the target.

I don’t use this program anymore for syncing but I can tell you, it works great if you want to easy upload a website to a live server.