Skip to content

Instantly share code, notes, and snippets.

@deckerego
Last active January 7, 2017 03:02
Show Gist options
  • Save deckerego/7828204 to your computer and use it in GitHub Desktop.
Save deckerego/7828204 to your computer and use it in GitHub Desktop.
RSync a directory over SSH
rsync --exclude=.git -ave ssh --delete MyDirectory/ root@remotehost:/srv/files/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment