capistrano_rsync_with_remote_cache icon indicating copy to clipboard operation
capistrano_rsync_with_remote_cache copied to clipboard

Add support for rsync --exclude to speed up deployment

Open deardaniel opened this issue 11 years ago • 1 comments

This simply adds a copy_exclude configuration option that is converted to rsync --exclude parameters.

Similar in implementation to remote_cache.

deardaniel avatar Sep 06 '13 07:09 deardaniel

Added in 4c19355ba6bcbb7dccb72a8ee6bcd04691533d4a. Two things to note:

  • I only use --exclude when syncing the local cache to the remote server, syncing to the release directory doesn't need this flag since the source does not contain the excluded files.
  • I needed to change the default --delete flag to --delete-excluded so that the excluded files are removed from the remote directory (in case they were there previously). --delete-excluded implies --delete, so it's a drop-in replacement.

Let me know if this addresses your original issue.

reagent avatar Oct 21 '14 16:10 reagent