Skip to content

Instantly share code, notes, and snippets.

@matt-bailey
Created September 3, 2012 13:33
Show Gist options
  • Save matt-bailey/3609369 to your computer and use it in GitHub Desktop.
Save matt-bailey/3609369 to your computer and use it in GitHub Desktop.
Terminal - Rsync merge files/folders from one server to another
# Merge from remote to local (exclude .svn folders)
rsync -av --exclude '.svn' [username]@[server]:/[path-to-folder]/[folder] ./
--progress
# Use this flag to show progress
# ./ means merge into the current folder (it needs to exist!)
# Reverse paths to go from local to remote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment