Skip to content

Instantly share code, notes, and snippets.

@jlrigau
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlrigau/06d924ce8d16c65f20cf to your computer and use it in GitHub Desktop.
Save jlrigau/06d924ce8d16c65f20cf to your computer and use it in GitHub Desktop.
How to synchronise directory through ssh tunneling
rsync -avz --delete -e 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ProxyCommand="ssh -W %h:%p USER@PROXY -p 2222"' --progress /data USER@DESTINATION:/backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment