{"id":24297157,"url":"https://github.com/remokasu/msc","last_synced_at":"2026-04-18T01:37:19.383Z","repository":{"id":271938063,"uuid":"915039733","full_name":"remokasu/msc","owner":"remokasu","description":"自動でMinecraftサーバーの起動/停止、バックアップを行うためのスケジューラ","archived":false,"fork":false,"pushed_at":"2025-01-10T20:55:15.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T08:57:28.891Z","etag":null,"topics":["bash","minecraft-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remokasu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-10T20:47:30.000Z","updated_at":"2025-01-10T20:55:48.000Z","dependencies_parsed_at":"2025-01-10T21:47:13.696Z","dependency_job_id":"e69a6fc0-7f36-48bf-b833-9b873a47dd5b","html_url":"https://github.com/remokasu/msc","commit_stats":null,"previous_names":["remokasu/msc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remokasu/msc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remokasu%2Fmsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remokasu%2Fmsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remokasu%2Fmsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remokasu%2Fmsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remokasu","download_url":"https://codeload.github.com/remokasu/msc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remokasu%2Fmsc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278712193,"owners_count":26032735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","minecraft-server"],"created_at":"2025-01-16T19:53:16.830Z","updated_at":"2025-10-07T02:51:25.943Z","avatar_url":"https://github.com/remokasu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minecraft Server Control\r\n\r\n自動でMinecraftサーバーの起動/停止、バックアップを行うためのスケジューラ\r\n\r\n\r\n## 機能\r\n\r\n- 時間帯を指定したサーバーの自動起動/停止\r\n- 自動バックアップ（世界データ、設定ファイルなど）\r\n\r\n\r\n## 依存パッケージのインストール\r\n```bash\r\nsudo apt-get install screen jq curl\r\n```\r\n\r\n## 使い方\r\n\r\n### 1. インストール\r\n\r\n付属の`install.sh`を使用してインストールします：\r\n\r\n```bash\r\nsudo ./install.sh\r\n```\r\n\r\nインストールスクリプトは以下の処理を行います：\r\n- 管理スクリプトを `/usr/local/bin/` にコピー\r\n- 実行権限の付与\r\n\r\n\r\n### 2. 設定ファイルの作成\r\n\r\n`config.json`：\r\n\r\n```json\r\n{\r\n    \"server\": {\r\n        \"dir\": \"/opt/minecraft\",          // Minecraftサーバーのディレクトリ\r\n        \"jar\": \"minecraft_server.jar\",    // サーバーJARファイル名\r\n        \"java_path\": \"/usr/bin/java\",     // Javaの実行ファイルパス\r\n        \"max_memory\": \"4G\",               // 最大メモリ使用量\r\n        \"screen_name\": \"minecraft\"        // screenセッション名\r\n    },\r\n    \"backup\": {\r\n        \"dest\": \"/opt/backup/minecraft\",  // バックアップ先ディレクトリ\r\n        \"items\": [                        // バックアップ対象\r\n            \"/opt/minecraft/world\",\r\n            \"/opt/minecraft/server.properties\",\r\n            \"/opt/minecraft/whitelist.json\",\r\n            \"/opt/minecraft/ops.json\"\r\n        ]\r\n    },\r\n    \"schedule\": {\r\n        \"repeat\": true,                   // スケジュールの繰り返し\r\n        \"intervals\": [                    // 運用時間帯\r\n            {\r\n                \"start\": \"10:00\",         // 開始時刻\r\n                \"stop\": \"11:59\",          // 終了時刻\r\n                \"backup\": false           // バックアップの有無\r\n            },\r\n            {\r\n                \"start\": \"22:00\",\r\n                \"stop\": \"23:59\",\r\n                \"backup\": true\r\n            }\r\n        ]\r\n    }\r\n}\r\n```\r\n\r\n### 2. スクリプトの実行\r\n\r\n#### バックグラウンドでの実行（推奨）\r\n``` bash\r\nnohup minecraft-server-control.sh --config config.json \u003e minecraft.log 2\u003e\u00261 \u0026\r\n```\r\n\r\n#### バックグラウンドでの実行時のログ確認\r\n``` bash\r\ntail -f minecraft.log\r\n```\r\n\r\n#### コンソールの表示\r\n``` bash\r\nscreen -r minecraft\r\n```\r\n\r\n#### 通常の実行\r\n``` bash\r\nminecraft-server-control.sh --config config.json\r\n```\r\n\r\n### 3. その他の操作\r\n\r\n#### ステータス確認\r\n``` bash\r\nminecraft-server-control.sh --config config.json --status\r\n```\r\n\r\n#### 即時バックアップ実行\r\n``` bash\r\nminecraft-server-control.sh --config config.json --backup-now\r\n```\r\n\r\n#### 古いバックアップの削除（30日以上前）\r\n``` bash\r\nminecraft-server-control.sh --config config.json --clean\r\n```\r\n\r\n#### ロックファイルのクリーンアップ\r\n``` bash\r\nminecraft-server-control.sh --config config.json --clean-lock\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremokasu%2Fmsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremokasu%2Fmsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremokasu%2Fmsc/lists"}