Created
March 24, 2017 16:13
-
-
Save philchristensen/fc59c70f1589210351d1e99580b39fc8 to your computer and use it in GitHub Desktop.
RSync between two remote hosts
This file contains 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
# r2sync stage-jira /var/lib/jira/ prod-jira /var/lib/jira | |
ssh -R localhost:50000:$1:22 $3 'rsync -e "ssh -p 50000" -vuar $2 localhost:$4' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment