diff --git a/lib/engines/postgresql.rb b/lib/engines/postgresql.rb index e4c456c..9fa87be 100644 --- a/lib/engines/postgresql.rb +++ b/lib/engines/postgresql.rb @@ -18,7 +18,7 @@ def load_backup(path) if @file_type.contains("sql") run_command("psql --no-password --set ON_ERROR_STOP=on --username=#{@username} --host=#{container_ip_address} --port=#{@port} --dbname=#{@database} < #{@sql_file}") elsif @file_type.contains("dump") - run_command("pg_restore --no-password --set ON_ERROR_STOP=on --username=#{@username} --host=#{container_ip_address} --port=#{@port} --dbname=#{@database} < #{@sql_file}")i + run_command("pg_restore --no-password --set ON_ERROR_STOP=on --username=#{@username} --host=#{container_ip_address} --port=#{@port} --dbname=#{@database} < #{@sql_file}") else raise 'File Type parameter in Postgresql Driver is invalid.' end