Skip to content

Commit

Permalink
backup:db runs on :web to have all files together
Browse files Browse the repository at this point in the history
backup:web expects the sql dump file to be on the same server
  • Loading branch information
jjohnson-xx committed Jan 31, 2014
1 parent 6aa963b commit 8ce4117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ash/base.rb
Expand Up @@ -466,7 +466,7 @@
end

desc "Perform a backup of database files"
task :db, :roles => :db do
task :db, :roles => :web do
if previous_release
mysqldump = fetch(:mysqldump, "mysqldump")
dump_options = fetch(:dump_options, "--single-transaction --create-options --quick")
Expand Down
2 changes: 1 addition & 1 deletion lib/ash/drupal.rb
Expand Up @@ -143,7 +143,7 @@

namespace :backup do
desc "Perform a backup of database files"
task :db, :roles => :db do
task :db, :roles => :web do
if previous_release
puts "Backing up the database now and putting dump file in the previous release directory"

Expand Down

0 comments on commit 8ce4117

Please sign in to comment.