fix(docs): スナップショット対象を /work から /home/ubuntu 共通ボリュームに修正#8
Open
takemi-ohama wants to merge 1 commit intomainfrom
Open
fix(docs): スナップショット対象を /work から /home/ubuntu 共通ボリュームに修正#8takemi-ohama wants to merge 1 commit intomainfrom
takemi-ohama wants to merge 1 commit intomainfrom
Conversation
実装 (lib/devbase/snapshot/manager.py:17 VOLUME_NAME = 'devbase_home_ubuntu') と異なり、ドキュメントが「/work ボリュームを増分バックアップ」と記載 していたため整合性を失っていた。 PR #6 で README と snapshot-guide.md を「/work」に修正したのは誤り (元の「ホームボリューム」が正しかった)。今回正しい記述に統一する。 修正: - README.md L16: スナップショット対象の表記 - docs/user/snapshot-guide.md L3, L23, L203: 同上 + 「/work 配下はバックアップ対象外」の注記を追加 - docs/user/troubleshooting.md L376, L379: 高速化のヒントの対象パス 参考: スナップショット対象の実装 lib/devbase/snapshot/manager.py: VOLUME_NAME = 'devbase_home_ubuntu' # /home/ubuntu にマウントされる共通ボリューム ユーザ視点では /home/ubuntu が個人設定 / シェル履歴 / SSH 鍵 / AI CLI キャッシュ / VS Code 拡張機能の保存先で、スナップショットは これらを保護する目的。プロジェクト作業ファイル (/work 配下) は Git で管理する前提。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
概要
実装と異なり、ドキュメントが「snapshot 対象 = `/work` ボリューム」と記載していたため整合性を失っていた問題の修正。実装は `devbase_home_ubuntu` ボリューム(`/home/ubuntu` にマウント)を対象にしており、これが正しい仕様。
PR #6 で README と snapshot-guide.md を「`/work`」に修正したのは私の誤り(元の「ホームボリューム」が正しかった)。今回正しい記述に統一する。
関連 Issue
変更点
`README.md` L16
`docs/user/snapshot-guide.md`
`docs/user/troubleshooting.md`
実装根拠
`lib/devbase/snapshot/manager.py`:
```python
VOLUME_NAME = 'devbase_home_ubuntu' # /home/ubuntu にマウントされる共通ボリューム
```
`SnapshotManager` はこのボリュームを対象に `docker run` で snapshot コンテナを立ててバックアップを行う。`/work` ボリュームには触らない。
ユーザ視点での意味
`/home/ubuntu` は以下を保存する場所であり、これらを保護することがスナップショットの目的:
一方、プロジェクト作業ファイル(`/work` 配下)は Git で管理する前提であり、スナップショット対象外。
やらないこと
動作確認