Commit 7cc25692

mo khan <mo@mokhan.ca>
2014-05-19 02:20:50
back prod db backup.
1 parent 071d02e
Changed files (1)
config
config/recipes/postgresql.rb
@@ -39,7 +39,8 @@ namespace :postgresql do
     backup_path = "#{shared_path}/backups"
     run "mkdir -p #{shared_path}/backups"
 
-    run "PGPASSWORD='#{postgresql_password}' pg_dump -Fc --no-acl --no-owner -h #{postgresql_host} -U #{postgresql_user} #{postgresql_database} > #{backup_path}/#{filename}"
+    #run "PGPASSWORD='#{postgresql_password}' pg_dump -Fc --no-acl --no-owner -h #{postgresql_host} -U #{postgresql_user} #{postgresql_database} > #{backup_path}/#{filename}"
+    run "PGPASSWORD='#{postgresql_password}' pg_dump -Fc --no-acl --no-owner -h #{postgresql_host} -U deployer cakeside > #{backup_path}/#{filename}"
     download("#{backup_path}/#{filename}", "db/backups/", :via => :scp)
   end
 end