Skip to content

Instantly share code, notes, and snippets.

@niraj-shah niraj-shah/
Last active Aug 29, 2015

What would you like to do?
Rsync from remote server to local
# remote to local
sudo rsync -uvzr -e 'ssh -p 2222 -l username' /var/www/html
# local to remote
sudo rsync -uvzr /var/www/html/ -e 'ssh -p 2222 -l username'
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.