Skip to content

Instantly share code, notes, and snippets.

@fernandoacorreia
Created February 24, 2021 18:32
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 fernandoacorreia/cfaa6007d3d95eaffd4d0ea1173d3c55 to your computer and use it in GitHub Desktop.
Save fernandoacorreia/cfaa6007d3d95eaffd4d0ea1173d3c55 to your computer and use it in GitHub Desktop.
rsync example
#!/bin/bash
#
# Copies changed files to a remote server except the .git directory.
#
rsync -razvhPu -e ssh --exclude '.git' ~/Projects/forge fernando-box:/home/fedora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment