Skip to main content

svnadmin create a new empty project repository in subversion (svn) in Linux

If you have installed subversion (used for version control) and looking for creating a repository inside that, you are at the right place. Command to create new project repositories inside subversion is svnadmin create.

# svnadmin create repoPath
- this will create an empty repository.
- repoPath has to be a path to a folder, if that folder does not exists; new folder will be created.

Consider following examples.
# svnadmin create /usr/local/svn/clients/MyProject
or
# svnadmin create .

First command will create a repository inside "/usr/local/svn/clients/MyProject" while the second command creates a repository in your current directory.

After creating the repository, you must alter access controls. For that open conf/svnserver.conf found inside newly created repository folder.
Common values to alter are;
anon-access
- access control for non authenticated users
- better to set it to none (anon-access = none)
auth-access
- access control for authenticated users
- will need set it to "read" or "write" (auth-access = read)

Comments

  1. Thanks a lot for sharing. I always refer this while creating a new project in repository.

    Jason

    ReplyDelete
  2. Exactly I needed information included, thank you.

    ReplyDelete
  3. Thank you so much for sharing such an useful article with us, this article has helped me a lot.

    ReplyDelete
  4. No repository found in 'svn://remote machine', when i try to connect remote subversion server. This was working few days ago. file:///c:/local local access works but i can't connect to the server remotely. i am using tortoise for connection.

    ReplyDelete
  5. Thanks for this - however, the example shown predictably fails unless the user is aware of the larger context .e.g. who are you logged in as when executing the command, who is the owner of the svn owned directories. Adding this information to your post would dramatically reduce the number of people who try it, find it fails, and go off to search for other examples.

    ReplyDelete

Post a Comment

We appreciate your opinions, suggestions and criticism.

Popular posts from this blog

Web Services with Apache Axis 1.4 Tutorial: server and client sides

Java Sorting: Comparator vs Comparable Tutorial

Creative Commons License Digizol by Kamal Mettananda is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License .
URL of this page must be supplied in attribution
© 2004-2017