Commit 368e71a5

mo khan <mo@mokhan.ca>
2013-07-27 23:12:51
update rake task to invoke the proper capistrano command when backing up or restoring databases
1 parent f4f2f26
Changed files (1)
lib
lib/tasks/database.rake
@@ -8,10 +8,10 @@ namespace :db do
     #sh "pg_restore --verbose --clean --no-acl --no-owner -h localhost -U #{config[Rails.env]["username"]} -d #{destination_db} #{dumpfile}"
   end
   task :backup do
-    sh "cap production backup_db"
+    sh "cap production postgresql:backup"
     sh "rm -f latest && ln -s db/backups/`ls -rt db/backups/ | tail -n1` latest"
   end
   task :restore_to_staging => :backup do
-    sh "cap staging restore_db"
+    sh "cap staging postgresql:restore"
   end
 end