Personal Project

Monday, February 8, 2016

How to rsync local folder to remote folder ?



Rsync local folder to remote folder 


Command

rsync -avz --delete -e 'ssh -i key' localfolder username@remote ip:remote folder

Ex: 
rsync -avz --delete -e 'ssh -i server.pem' test ubuntu@192.168.0.1:/var/www/html/test/



No comments:

Post a Comment