Created
September 3, 2012 13:33
-
-
Save matt-bailey/3609369 to your computer and use it in GitHub Desktop.
Terminal - Rsync merge files/folders from one server to another
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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