Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
Last active January 29, 2016 06:16
Show Gist options
  • Save danielwrobert/7a12991ae3ae43abf5f1 to your computer and use it in GitHub Desktop.
Save danielwrobert/7a12991ae3ae43abf5f1 to your computer and use it in GitHub Desktop.
Some typical excludes for rsync deploys. Run with --exclude-from= flag.
.DS_Store
rsync-excludes.txt
error_log
node_modules
_resources
.git
.sass-cache
@danielwrobert
Copy link
Author

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment