Last active
August 29, 2015 14:09
-
-
Save niraj-shah/b3e92ac86038605bb24f to your computer and use it in GitHub Desktop.
Rsync from remote server to local
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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