The Subversion repository (repository), which is located on the server side, is where data is managed and stored uniformly. In this article, we take Linux as an example to introduce the basic methods of configuring and managing the Subversion repository on the server side.
To create a repository, first determine which data storage method to use. In Subversion, repository data is stored in two ways, one for storing data in a Berkeley DB database, and the other for storing it in a custom format using plain files, called FSFS.
Two storage methods have advantages and disadvantages, readers can refer to http://svnbook.org/above the document to understand the detailed comparison and differences, here, we only refer to the above documents in the simple table, give a concise comparison.
features |
Berkeley DB |
FSFS |
Sensitivity to operational interruptions |
System crashes or permissions issues can cause the database to "jam" and require regular recovery. |
Not sensitive |
Can read-only load |
No |
Can |
Storage Platform agnostic |
No |
Can |
Accessible from the network file system |
No |
Can |
Version Library size |
Slightly larger |
Slightly smaller |
Extensibility: Number of revision trees |
Unlimited |
Some local file systems have problems processing a single directory that contains thousands of entries. |
Extensibility: Directories with large files |
More slowly |
More slowly |
The speed of checking out the latest code |
More quickly |
OK |
The speed of a lot of commits |
Slower, but the time is allocated throughout the commit operation |
Faster, but the last longer delay may cause client operations to time out |
Group access rights processing |
is sensitive to the user's umask settings and is best accessed by only one user. |
Insensitive to Umask settings |
Function Maturity Time |
2001 |
2004 |
Determines the specific type of data storage, as long as the command to execute the command in order svnadmin
to create a Subversion repository, the command is as follows:
/etc/svn//etc/svn/--fs-type fsfs/etc/svn/repos
via:http://www.ibm.com/developerworks/cn/java/j-lo-apache-subversion/
Comparison of two storage methods in SVN (BDB vs. FSFS)