Skip to content

Instantly share code, notes, and snippets.

@ericvanjohnson
Created January 22, 2013 19:55
Show Gist options
  • Save ericvanjohnson/4597880 to your computer and use it in GitHub Desktop.
Save ericvanjohnson/4597880 to your computer and use it in GitHub Desktop.
Rsync over SSH using SUDO on the remote server
rsync -ave "ssh" --rsync-path="sudo rsync" USER@REMOTE_SERVER:/remote/file/path/ /local/file/path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment