Wednesday 26 February 2014

rsync

Just an example: from server1 to server2


rsync -avz -e ssh root@server2:/opt/softwaredepot/* /opt/softwaredepot_new/

need to run this from server1. We are pulling from server2

Before that, we need to set ssh keyless access from server1 to server2


===========================


If you have ssh in place for root..from server3 to server4

So from server3 (push method)

rsync -avz /xxxxxxxx/yyyyyyy/* root@server4:/xxxxxxxx/yyyyyyy/

No comments:

Post a Comment