api.so-manager-dev.com/config/shj2.php
unhi.go e1073e2577
All checks were successful
Deploy api / deploy (push) Successful in 24s
SH-6 SHJ-9 実装
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 20:16:47 +08:00

62 lines
2.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* SHJ-2 データバックアップ設定
*
* バックアップ対象パス、保存先、世代数などの設定
* 環境に応じて .env ファイルで上書き可能
*/
return [
/*
|--------------------------------------------------------------------------
| バックアップ保存先ルートディレクトリ
|--------------------------------------------------------------------------
| 世代ディレクトリの親ディレクトリ
| 例: C:/xampp8/backup/somanager/krgm/ が1世代前のバックアップ先
*/
'backup_root' => env('SHJ2_BACKUP_ROOT', 'C:/xampp8/backup/somanager'),
/*
|--------------------------------------------------------------------------
| バックアップ対象ソースディレクトリ
|--------------------------------------------------------------------------
| vendor等を除外してバックアップするプロジェクトパス
| 空文字列のパスは自動的にスキップされる
*/
'source_paths' => [
env('SHJ2_SOURCE_1', 'C:/xampp8/htdocs/somanager/api-batch.app'),
env('SHJ2_SOURCE_2', 'C:/xampp8/htdocs/somanager/www.app'),
env('SHJ2_SOURCE_3', ''), // 第3プロジェクトパス設定後に有効
],
/*
|--------------------------------------------------------------------------
| 除外ディレクトリ
|--------------------------------------------------------------------------
| バックアップ対象から除外するディレクトリ名
*/
'exclude_dirs' => [
'vendor',
'node_modules',
'.git',
],
/*
|--------------------------------------------------------------------------
| 世代数
|--------------------------------------------------------------------------
| フルバックアップを保持する世代数
*/
'generations' => 5,
/*
|--------------------------------------------------------------------------
| mysqldumpパス
|--------------------------------------------------------------------------
| mysqldumpコマンドの絶対パス
*/
'mysqldump_path' => env('SHJ2_MYSQLDUMP_PATH', 'C:/xampp8/mysql/bin/mysqldump'),
];