Created
April 4, 2016 22:45
-
-
Save julienma/131e997f5f2a8e242920057da28bca8d to your computer and use it in GitHub Desktop.
rsync big folders from one server to another, with custom port and RSA key.
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
rsync -e 'ssh -p 12345 -i ~/.ssh/id_custom_rsa' --stats --progress -vaz ~/local-folder [email protected]:~/remote-folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative: to send a lot of small files over a slow connection, might be better to tar everything: