Skip to content

Instantly share code, notes, and snippets.

@mauromorales
Last active December 15, 2015 14:19
Show Gist options
  • Save mauromorales/5274099 to your computer and use it in GitHub Desktop.
Save mauromorales/5274099 to your computer and use it in GitHub Desktop.
rsync --version
# should answer something like
# rsync version 2.6.9 protocol version 29
curl -O http://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz
tar -xzvf rsync-3.0.9.tar.gz
rm rsync-3.0.9.tar.gz
curl -O http://rsync.samba.org/ftp/rsync/src/rsync-patches-3.0.9.tar.gz
tar -xzvf rsync-patches-3.0.9.tar.gz
rm rsync-patches-3.0.9.tar.gz
cd rsync-3.0.9
patch -p1 <patches/fileflags.diff
patch -p1 <patches/crtimes.diff
patch -p1 <patches/hfs-compression.diff
./prepare-source
./configure --prefix /usr/local
make
sudo make install
# source: http://librelist.com/browser//homebrew/2011/7/7/rsync/
@@ -241,7 +241,7 @@ task :rsync do
exclude = "--exclude-from '#{File.expand_path('./rsync-exclude')}'"
end
puts "## Deploying website via Rsync"
- ok_failed system("rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{rsync_args} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}")
+ ok_failed system("/usr/local/bin/rsync -avze 'ssh -p #{ssh_port}' #{exclude} #{rsync_args} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment