Last active
January 29, 2016 06:16
-
-
Save danielwrobert/7a12991ae3ae43abf5f1 to your computer and use it in GitHub Desktop.
Some typical excludes for rsync deploys. Run with --exclude-from= flag.
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
.DS_Store | |
rsync-excludes.txt | |
error_log | |
node_modules | |
_resources | |
.git | |
.sass-cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A typical deploy command from your local machine to a remote server would be run from the directory with the
rsync-excludes.txt
file and would look like the following example:rsync -avzr --delete --stats --exclude-from='rsync-excludes.txt' [PATH_TO_LOCAL_DIR] [PATH_TO_REMOTE_SERVER_DIR]
Additional resources: