This documentation was written to describe the 1.6.x series of Subversion. If you are running a different version of Subversion, you are strongly encouraged to visit http://www.svnbook.com/ and instead consult the version of this documentation appropriate for your version of Subversion.
svnadmin create — Create a new, empty repository.
Create a new, empty repository at the path provided.
If the provided directory does not exist, it will be
created for
you.[62] 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. Also, keep in mind that, depending
on where on your system you are creating your
repository, you might need to run svnadmin
create as a user with elevated privileges
(such as the root
user).
--bdb-log-keep --bdb-txn-nosync --config-dir DIR --fs-type TYPE --pre-1.4-compatible --pre-1.5-compatible --pre-1.6-compatible
Creating a new repository is this easy:
$ cd /var/svn $ svnadmin create repos $
In Subversion 1.0, a Berkeley DB repository is always
created. In Subversion 1.1, a Berkeley DB repository is
the default repository type, but an FSFS repository can be
created using the --fs-type
option:
$ cd /var/svn $ svnadmin create repos --fs-type fsfs $