Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RSync between two remote hosts
# 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
You can’t perform that action at this time.