Last active
December 15, 2015 14:19
-
-
Save mauromorales/5274099 to your computer and use it in GitHub Desktop.
This file contains 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
rsync --version | |
# should answer something like | |
# rsync version 2.6.9 protocol version 29 |
This file contains 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
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/ |
This file contains 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
@@ -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