第5章 リポジトリの管理

目次

The Subversion Repository, Defined
リポジトリ提供の戦略
リポジトリ構成の計画
リポジトリをどこにどのように格納するかの決定
リポジトリ保存形式の選択
Berkeley DB
FSFS
Creating and Configuring Your Repository
リポジトリの作成
リポジトリフックの実装
Berkeley DB の設定
リポジトリの保守
管理者用ツールキット
svnadmin
svnlook
svndumpfilter
svnsync
Berkeley DB ユーティリティー
コミットログメッセージの正確性
ディスク領域の管理
Subversion はどのようにディスク消費を抑えるか
死んだトランザクションの削除
Purging unused Berkeley DB logfiles
Berkeley DB の復旧
リポジトリデータを別の場所へ移動
リポジトリ履歴のフィルタリング
リポジトリの複製
リポジトリのバックアップ
まとめ

The Subversion repository is the central storehouse of all your versioned data. As such, it becomes an obvious candidate for all the love and attention an administrator can offer. While the repository is generally a low-maintenance item, it is important to understand how to properly configure and care for it so that potential problems are avoided, and actual problems are safely resolved.

In this chapter, we'll discuss how to create and configure a Subversion repository. We'll also talk about repository maintenance, providing examples of how and when to use the svnlook and svnadmin tools provided with Subversion. We'll address some common questions and mistakes, and give some suggestions on how to arrange the data in the repository.

If you plan to access a Subversion repository only in the role of a user whose data is under version control (that is, via a Subversion client), you can skip this chapter altogether. However, if you are, or wish to become, a Subversion repository administrator, [26] this chapter is for you.



[26] This may sound really prestigious and lofty, but we're just talking about anyone who is interested in that mysterious realm beyond the working copy where everyone's data hangs out.