建立新的版本库
这边是演示创建一个新的svn的项目 sadoc。实际工作中 项目工程可以创建多个 。
使用指令
svnadmin
可以使用 help 查看 帮助
[root@localhost /]# svnadmin help general usage: svnadmin SUBCOMMAND REPOS_PATH [ARGS & OPTIONS ...] Type 'svnadmin help <subcommand>' for help on a specific subcommand. Type 'svnadmin --version' to see the program version and FS modules. Available subcommands: crashtest create deltify dump help (?, h) hotcopy list-dblogs list-unused-dblogs load lslocks lstxns pack recover rmlocks rmtxns setlog setrevprop setuuid upgrade verify [root@localhost /]# svnadmin help create # 2级参数的 查看 create: usage: svnadmin create REPOS_PATH Create a new, empty repository at REPOS_PATH. Valid options: --bdb-txn-nosync : disable fsync at transaction commit [Berkeley DB] --bdb-log-keep : disable automatic log file removal [Berkeley DB] --config-dir ARG : read user configuration files from directory ARG --fs-type ARG : type of repository: 'fsfs' (default) or 'bdb' --pre-1.4-compatible : use format compatible with Subversion versions earlier than 1.4 --pre-1.5-compatible : use format compatible with Subversion versions earlier than 1.5 --pre-1.6-compatible : use format compatible with Subversion versions earlier than 1.6
创建新的项目工程库
[root@localhost /]# svnadmin create /application/svndata/sadoc
创建完成后。 我们查看该目录 , 发现该目录下面已经生成了许多文件。 改工程的项目目录已经初始化完成了。
[root@localhost /]# ll /application/svndata/sadoc/ total 8 drwxr-xr-x 2 root root 54 Dec 28 12:37 conf drwxr-sr-x 6 root root 233 Dec 28 12:37 db -r--r--r-- 1 root root 2 Dec 28 12:37 format drwxr-xr-x 2 root root 231 Dec 28 12:37 hooks drwxr-xr-x 2 root root 41 Dec 28 12:37 locks -rw-r--r-- 1 root root 229 Dec 28 12:37 README.txt [root@localhost /]#