查看已经创建的svn库格式是 FSFS 还是 VDFS 的?

因为有些svnadmin命令(例如svnadmin hotcopy --incremental  ;svanadmin pack),只能用于FSFS格式库文件。需要知道当前库的文件格式是什么。

例如:Subversion(SVN)备份问题(用 svnadmin hotcopy 支持增量备份) https://www.cnblogs.com/johnphan/p/9282662.html

使用 svnadmin info 命令可以查看库文件的格式设置。

要注意的是,更新日志上说1.9.0版本才支持这个功能,

Version 1.9.0
(5 Aug 2015, from /branches/1.9.x)
http://svn.apache.org/repos/asf/subversion/tags/1.9.0
    * svnadmin info: new subcommand to print info about a repository

使用例子:

E:\Repositories>svnadmin info aa
Path: aa
UUID: 7896e1b3-c25b-dc44-bc7b-5e1bd20f2010
Repository Format: 5
Compatible With Version: 1.8.0
Repository Capability: mergeinfo
Filesystem Type: fsfs
Filesystem Format: 6
FSFS Sharded: yes
FSFS Shard Size: 1000
FSFS Shards Packed: 0/0
FSFS Logical Addressing: no
Configuration File: aa\db\fsfs.conf

(上面最后一行,提示不使用这个命令,在相应的目录下,看到文件名: fsfs.conf,也可以做出判断出来当前SVN库的文件类型是fsfs。这也许是最原始的方法。)

 

一般SVN建库时,都是用FSFS格式。用其它格式的,都是2班的。2班的请留步,请问你为啥不用FSFS格式?

posted on 2018-07-09 10:37  johnphan  阅读(3615)  评论(0编辑  收藏  举报

导航