Skip to content

A free open source IT asset/license management system

Added additional dump variables

snipe6724489be2dd
diff --git a/.env.example b/.env.example
index 289a7c1c33..6239c0e226 100644
--- a/.env.example
+++ b/.env.example
@@ -18,6 +18,7 @@ DB_DATABASE=null
DB_USERNAME=null
DB_PASSWORD=null
DB_PREFIX=null
+DB_DUMP_PATH='/usr/local/bin'
# --------------------------------------------
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
diff --git a/config/database.php b/config/database.php
index a36b8e789b..5eeaaa259b 100644
--- a/config/database.php
+++ b/config/database.php
@@ -69,6 +69,9 @@ return [
'prefix' => env('DB_PREFIX', null),
'strict' => false,
'engine' => null,
+ 'dump_command_path' => env('DB_DUMP_PATH', '/usr/local/bin'), // only the path, so without 'mysqldump'
+ 'dump_command_timeout' => 60 * 5, // 5 minute timeout
+ 'dump_using_single_transaction' => true, // perform dump using a single transaction
],
'pgsql' => [