feat: 添加·定时自动备份并上传到谷歌云存储·的功能

This commit is contained in:
xboard
2023-11-18 19:54:16 +08:00
parent aa9ec41921
commit cc1dc14c84
8 changed files with 91 additions and 0 deletions

10
config/cloud_storage.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
return [
'google_cloud' => [
'key_file' => env('GOOGLE_CLOUD_KEY_FILE') ? base_path(env('GOOGLE_CLOUD_KEY_FILE')) : null,
'storage_bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET'),
],
];

View File

@@ -45,6 +45,12 @@ return [
'ignore_exceptions' => false,
],
'backup' => [
'driver' => 'single',
'path' => storage_path('logs/backup.log'),
'level' => 'debug',
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),