satishgaudo.com

Understanding technology

Linux rsync command

Following command is used for remote syncing of a folder on two remote servers:

/usr/local/bin/rsync -avz -e ssh /opt/www/cms/imagedata/2009/oct/ webdoc@domU-12-31-39-03-09-20:/opt/www/clt20/imagedata/2009/oct/

To rsync a particular file use:

/usr/local/bin/rsync -avz -e ssh /opt/www/clt20/rss.xml webdoc@domU-12-31-39-03-09-20:/opt/www/clt20/

Bookmark and Share
Categories: linux
*