Wednesday, August 13, 2008

how to rsync folder from server to server

How to rsync
Lets say you have folder /vz/private/220 on local machine and you want to rsync to server 192.168.1.1 you have to run following command.


rsync -r -a -v -e "ssh -l root" /vz/private/220 192.168.1.1:/vz/private/220

This will sync the local folder and subfolder of 220 to the remote server in /vz/private/220

Cheers!!

No comments: