create cron for backing up db

This commit is contained in:
2025-09-24 14:42:46 +03:30
parent c43909574e
commit fadc8379d9
7 changed files with 69 additions and 3 deletions

View File

@@ -2,4 +2,7 @@
return [
'IS_DEVELOPMENT_ENV' => env('IS_DEVELOPMENT_ENV', false),
"BACKUP_TARGET_DIR" => env('BACKUP_TARGET_DIR'),
"BACKUP_USER" => env('BACKUP_USER'),
"BACKUP_PASSWORD" => env('BACKUP_PASSWORD'),
];

View File

@@ -135,6 +135,11 @@ return [
'path' => storage_path('logs/fms/error_rate_service.log'),
'level' => 'info',
],
],
'mariadb-backup' => [
'driver' => 'single',
'path' => storage_path('logs/mariadb-backup.log'),
'level' => 'info',
],
],
];