Linux / Unix: Use rsync Command Over FTP

by on April 9, 2013 · 1 comment· LAST UPDATED April 9, 2013

in ,

How do I use rsync command to sync files to a remote host called web-42.vps running VSFTPD ftp server? Can you give me rsync ftp example for Unix like operating systems?

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.

Tutorial details
DifficultyIntermediate (rss)
Root privilegesNo
Requirementslftp/ncftp
Estimated completion timeN/A
Long answer - rsync is a tool for doing syncs of two directories on a local system or a combination of local and remote systems. It is famous for its delta-transfer algorithm, which reduces the amount of data sent over the network by sending only the differences between the source files and the existing files in the destination. Rsync is widely used for backups and mirroring and as an improved copy command for everyday use. The remote system must have rsync or rsync daemon installed. So

The solution

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.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 1 comment… read it below or add one }

1 jet April 11, 2013 at 12:45 am

Or mount ftp resource locally with curlftpfs and then sync

Reply

Leave a Comment

Tagged as: , , , , , , , , , ,

Previous Faq:

Next Faq: