Commit 7740005b76b179a2358d2d23714f0afad7075824

Authored by Dmitriy Zaporozhets
2 parents 2a7ae176 b8983721

Merge pull request #4264 from andrewwutw/fix-postgresql-restore

Fix PostgreSQL database restoration problem (#4217)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/backup/database.rb
... ... @@ -26,7 +26,7 @@ module Backup
26 26 system("mysql #{mysql_args} #{config['database']} < #{db_file_name}")
27 27 when "postgresql" then
28 28 pg_env
29   - system("pg_restore #{config['database']} #{db_file_name}")
  29 + system("psql #{config['database']} -f #{db_file_name}")
30 30 end
31 31 end
32 32  
... ...