Skip to content

Instantly share code, notes, and snippets.

@philchristensen
Created March 24, 2017 16:13
Show Gist options
  • Save philchristensen/fc59c70f1589210351d1e99580b39fc8 to your computer and use it in GitHub Desktop.
Save philchristensen/fc59c70f1589210351d1e99580b39fc8 to your computer and use it in GitHub Desktop.
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