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