Short answer - You can't. rsync can't use ftp as a remote host. So rsync does not work over ftp session/protocol. It only works with rsync protocol.
|Estimated completion time||N/A|
If you must mirror files from local Unix/Linux system to the remote server. Try lftp command. It has builtin mirror which can download or update a whole directory tree. There is also reverse mirror (mirror -R) which uploads or updates a directory tree on server. Mirror can also synchronize directories between two remote servers, using FXP if available. The syntax is:
mirror source target
See our Linux / Unix: lftp Command Mirror Files and Directories faq for more information.Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?