2026-04-29 10:01:32 +00:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
/*
|
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
| Backup Settings
|
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
| Used by workkit:db:backup, workkit:db:restore and
|
|
|
|
|
|
| workkit:db:prune-backups. The default `path` is storage_path('backups')
|
|
|
|
|
|
| so backups live alongside the rest of the app's storage. `retention_days`
|
|
|
|
|
|
| is the threshold workkit:db:prune-backups uses by default — anything
|
|
|
|
|
|
| older than that gets deleted on the next prune run.
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
'backup' => [
|
|
|
|
|
|
'path' => env('WORKKIT_BACKUP_PATH'), // null → storage_path('backups')
|
|
|
|
|
|
'retention_days' => (int) env('WORKKIT_BACKUP_RETENTION_DAYS', 30),
|
2026-04-29 12:26:17 +00:00
|
|
|
|
// xz compression level. Lower = faster + larger output. 3 is a
|
|
|
|
|
|
// good default for SQL dumps (~10× ratio at ~3× the speed of -9).
|
|
|
|
|
|
'xz_level' => (int) env('WORKKIT_BACKUP_XZ_LEVEL', 3),
|
2026-04-29 10:01:32 +00:00
|
|
|
|
],
|
|
|
|
|
|
];
|