Permalink
Browse files

Fix 'cap db:download' to always check for changes. If local file was …

…newer but wrong, it wasn't replacing it.
  • Loading branch information...
1 parent 5576a24 commit 518d6ec9922e871017c5e6581e518e39bb2f7837 @igal igal committed Jun 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/deploy.rb
View
@@ -158,7 +158,7 @@ def sh(command)
desc "Download database from remote server"
task :download, :roles => :db, :only => {:primary => true} do
- sh "rsync -uvax #{user}@#{host}:#{shared_path}/db/database.sql ."
+ sh "rsync -vaxP #{user}@#{host}:#{shared_path}/db/database.sql ."
end
desc "Use: dump and download remote database and restore it locally"

0 comments on commit 518d6ec

Please sign in to comment.