Detailed description of the storage path and file of the Linux svn server.

Source: Internet
Author: User

Detailed description of the storage path and file of the Linux svn server.

Svn has two storage methods: BDB and FSFS. Currently, the most common storage method is FSFS. This method is generally stored in the \ db \ revs folder, there are a bunch of files named after version numbers, such as: 0, 1, 2, 3, 4 ......, that's it.
Example:/var/svn/svnrepos/db/revs
/Var/svn/svnrepos/is the svn version library directory
Db/revs/directory of svn files stored
[root@master revs]# pwd/var/svn/svnrepos/db/revs
[root@master revs]# ll
Total usage 4drwxr-sr-x. 2 root 4096 14:43, January 1, November 5 0
[root@master 0]# pwd/var/svn/svnrepos/db/revs/0
0 is the directory of version 0th [root @ master 0] # ll total usage 5128-rw-r -- r --. 1 root 115 November 4 17:22 0-rw-r -- r --. 1 root 284 November 5 13:28 1-rw-r -- r --. 1 root 620 November 5 13:30 2-rw-r -- r --. 1 root 5228784 November 5 14:04 3-rw-r -- r --. 1 root 1451 November 5 14:42 4-rw-r -- r --. 1 root 1432 November 5 14:43 5 [root @ master 0] #
There are 0, 1, 2, 3, 4, and so on under 0, which indicates the modified Resume of this version.

On the linux svn server, where are the files stored?

Svn has two storage methods: BDB and FSFS. Currently, the most common storage method is FSFS. This method is generally stored in the \ db \ revs folder, there are a bunch of files named after version numbers, such as: 0, 1, 2, 3, 4 ......, that's it.

Svn first compresses the status of version 0 into one file, and then makes a compressed file for the changed part each time the version is updated. Each time an incremental package is added, finally, we can see a series of files with names starting from 0 to the final version on the server.

How to store SVN data in linux

The Repository/data/svn/cpdata you created contains the directory db, where the data is stored and managed in the svn format.
If you want to move the library, there are two methods:
1. If the svn version is the same, or the version to be migrated is higher, move the repository directly.
2. Use the command svnadmin dump and svnadmin load to cooperate

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.