Skip to content
Snippets Groups Projects
Commit 7740005b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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

Fix PostgreSQL database restoration problem (#4217)
parents 2a7ae176 b8983721
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -26,7 +26,7 @@ module Backup
system("mysql #{mysql_args} #{config['database']} < #{db_file_name}")
when "postgresql" then
pg_env
system("pg_restore #{config['database']} #{db_file_name}")
system("psql #{config['database']} -f #{db_file_name}")
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment