Skip to content

Instantly share code, notes, and snippets.

@fernandoacorreia
Created February 24, 2021 18:32
Show Gist options
  • 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