Skip to content

Instantly share code, notes, and snippets.

@niraj-shah niraj-shah/rsync.sh
Last active Aug 29, 2015

Embed
What would you like to do?
Rsync from remote server to local
# remote to local
sudo rsync -uvzr -e 'ssh -p 2222 -l username' domain.com:/var/www/html/ /var/www/html
# local to remote
sudo rsync -uvzr /var/www/html/ -e 'ssh -p 2222 -l username' domain.com:/var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.