Portal Home > Knowledgebase > Articles Database > Using rsync and ftp


Using rsync and ftp




Posted by Shin Asuka, 10-04-2007, 11:07 AM
Hi, Does rsync required to be installed on both servers for it to work? Can rsync work with ftp only on the remote server? Can you guys list some typical rsync shell command to help me get started...thanks!

Posted by luki, 10-04-2007, 01:52 PM
You need rsync on both ends; rsync will not talk to an FTP server. Typical usage is: rsync -avze ssh user@remote_server:/target/directory/ source_directory_or_files

Posted by foobic, 10-04-2007, 07:52 PM
Um, no That should be: rsync [options] source target eg. syncing an entire local directory to a remote server: syncing an entire remote directory to a local path: rsync is needed on both servers but comes as standard in most distros. You don't normally have the rsync daemon running though so common usage is to run it through ssh, which is implied by the user@remote:path syntax.

Posted by luki, 10-04-2007, 10:37 PM
Yes, sorry. Long day today. foobic is right; my example sync the remove to local.

Posted by bqinternet, 10-05-2007, 01:49 AM
That's actually perfectly valid syntax, just in this case, the source is a remote server, and the target is a local directory.

Posted by foobic, 10-05-2007, 01:59 AM
Sure it's valid syntax. The reason for the is it's going to write to "source_directory_or_files".



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read