diff --git a/lib/backup/database.rb b/lib/backup/database.rb
index 2c43ed4f6e0ae9dc38db257accb41de10c501c75..c4fb2e2e159d5309936cdfe5261ddb004cbbf284 100644
--- a/lib/backup/database.rb
+++ b/lib/backup/database.rb
@@ -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