28mrt/100
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:
cd /usr/ports/ftp/ftpsync make install clean
Next create a config file to configure ftpsync for synchronization:
localdir=/home/mariusvw/backups ftpserver=rstore.kitara.nl ftpdir=/ ftpuser=username ftppasswd=password
Next you have two options for syncing...
Get-sync from server:
ftpsync.pl -g cfg=financenetwerk_eu-v1.cfg
Put-sync to server:
ftpsync.pl -n cfg=financenetwerk_eu-v1.cfg
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.




