Backup Repository[edit | edit source]

Backing up the entire repository from beginning of time to the most recent revision:

svnadmin dump /path/to/repository > backup.dump

To back up a specific range of revisions:

svnadmin dump /path/to/repository -r startRev:endRev > backup.dump

where startRev is the starting revision number and endRev the ending revision number. You may replace endRev with HEAD to specify the most recent revision.

Restore Repository[edit | edit source]

svnadmin create /path/to/repository
svnadmin load /path/to/repository < backup.dump

Setting up svnserve[edit | edit source]

To set up svnserve under CentOS/ScientificLinux, run:

yum install subversion
service svnsersve start

To configure svnserve, you will need two files in your repository's conf/ directory:

svnserve.conf:

 1 [general]
 2 ### These options control access to the repository for unauthenticated
 3 ### and authenticated users.  Valid values are "write", "read",
 4 ### and "none".  The sample settings below are the defaults.
 5 anon-access = none
 6 auth-access = write
 7 
 8 ### The password-db option controls the location of the password
 9 ### database file.  Unless you specify a path starting with a /,
10 ### the file's location is relative to the directory containing
11 ### this configuration file.
12 ### If SASL is enabled (see below), this file will NOT be used.
13 ### Uncomment the line below to use the default password file.
14 password-db = passwd
15 
16 ### This option specifies the authentication realm of the repository.
17 ### If two repositories have the same authentication realm, they should
18 ### have the same password database, and vice versa.  The default realm
19 ### is repository's uuid.
20 realm = Project Version 1.0 Repository

passwd: (as defined above in password-db)

1 [users]
2 leo = meinpasswort

Accessing Your Repository[edit | edit source]

You can now access your repository at:

svn://server/<path_to_repository>

For example, if my repository was placed in /home/leo/repository/project_v1, you should be able to checkout and commit at:

svn://server/home/leo/repository/project_v1

If you have defined your svnserve.conf properly, you will be prompted for a username/password.