octopress / docs

Source for the octopress.org documentation website
24 stars 30 forks source link

rsync arguments #36

Open dl1ngo opened 10 years ago

dl1ngo commented 10 years ago

A couple of weeks ago rsync stopped working properly for my setup (OSX 10.9.4 <-> FreeBSD 9.3), because the usual '-avz' argument is not recognized anymore. This affected rake deploy for my Octopress experiments as well. Attached is the patch that fixed the issue for me, I'm not sure about the backwards compatibiliy though.

@@ -245,7 +245,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("rsync -avzze 'ssh -p #{ssh_port}' #{exclude} #{rsync_args} #{"--delete" unless rsync_delete == false} #{public_dir}/ #{ssh_user}:#{document_root}")
 end