Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
cb6e7f7b6e
commit
bef650757d
1 changed files with 17 additions and 9 deletions
|
@ -8,6 +8,22 @@
|
||||||
| be modified directly.
|
| be modified directly.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
// This is used by the mysql dump options in spatie backup
|
||||||
|
$dump_options = [
|
||||||
|
'dump_binary_path' => env('DB_DUMP_PATH', '/usr/local/bin'), // only the path, so without 'mysqldump'
|
||||||
|
'use_single_transaction' => false,
|
||||||
|
'timeout' => 60 * 5, // 5 minute timeout
|
||||||
|
//'exclude_tables' => ['table1', 'table2'],
|
||||||
|
//'add_extra_option' => '--optionname=optionvalue',
|
||||||
|
];
|
||||||
|
|
||||||
|
// Some versions of mysql do not support the --skip-ssl option and will fail if it is
|
||||||
|
if (env('DB_DUMP_SKIP_SSL') == 'true') {
|
||||||
|
$dump_options['skip_ssl'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -79,15 +95,7 @@ return [
|
||||||
'strict' => false,
|
'strict' => false,
|
||||||
'engine' => 'InnoDB',
|
'engine' => 'InnoDB',
|
||||||
'unix_socket' => env('DB_SOCKET', ''),
|
'unix_socket' => env('DB_SOCKET', ''),
|
||||||
'dump' => [
|
'dump' => $dump_options,
|
||||||
'dump_binary_path' => env('DB_DUMP_PATH', '/usr/local/bin'), // only the path, so without 'mysqldump'
|
|
||||||
'skip_ssl' => env('DB_DUMP_SKIP_SSL', false), // turn off SSL if not available
|
|
||||||
'use_single_transaction' => false,
|
|
||||||
'timeout' => 60 * 5, // 5 minute timeout
|
|
||||||
//'exclude_tables' => ['table1', 'table2'],
|
|
||||||
//'add_extra_option' => '--optionname=optionvalue',
|
|
||||||
],
|
|
||||||
|
|
||||||
'dump_command_timeout' => 60 * 5, // 5 minute timeout
|
'dump_command_timeout' => 60 * 5, // 5 minute timeout
|
||||||
'dump_using_single_transaction' => true, // perform dump using a single transaction
|
'dump_using_single_transaction' => true, // perform dump using a single transaction
|
||||||
'options' => (env('DB_SSL')) ? ((env('DB_SSL_IS_PAAS')) ? [
|
'options' => (env('DB_SSL')) ? ((env('DB_SSL_IS_PAAS')) ? [
|
||||||
|
|
Loading…
Add table
Reference in a new issue