Name
svnadmin create — Create a new, empty repository.
Synopsis
svnadmin create REPOS_PATH
Description
Create a new, empty repository at the path provided. If the provided directory does not exist, it will be created for you.[57] As of Subversion 1.2, svnadmin creates new repositories with the FSFS filesystem backend by default.
While svnadmin create will create the base directory for a new repository, it will not create intermediate directories. For example, if you have an empty directory named /var/svn, creating /var/svn/repos will work, while attempting to create /var/svn/subdirectory/repos will fail with an error.
Options
--bdb-log-keep --bdb-txn-nosync --config-dirDIR
--fs-typeTYPE
--pre-1.4-compatible --pre-1.5-compatible
Examples
Creating a new repository is this easy:
$ svnadmin create /var/svn/repos
In Subversion 1.0, a Berkeley DB repository is always created.
In Subversion 1.1, a Berkeley DB repository is the default, but an
FSFS repository can be created with the --fs-type
option:
$ svnadmin create /var/svn/repos --fs-type fsfs
[57] Remember, svnadmin works only with local paths, not URLs.
Get Version Control with Subversion, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.