Open a terminal
$sudo apt-get install rsync
$ rsync -r -a -v -e "ssh -l shibu" --delete 192.168.0.5:/var/www/ /home/shibu/public_hrml
$ rsync -r -a -v -e "ssh -l shibu" --delete ceattingal.ac.in:/webroot/ /local/webroot
rsync command common options
- --delete : delete files that don't exist on sender
- -v : Verbose
- -z : compress file data
- -e "ssh options" : specify the ssh as remote shell
- -a : archive mode
- -r : recurse into directories