简体   繁体   English

“svnadmin dump”会锁定存储库吗?

[英]Does “svnadmin dump” lock the repository?

... what happens if someone tries to commit during a svnadmin dump REPOS_PATH ? ...如果有人在svnadmin dump REPOS_PATH期间尝试提交会发生什么?

The subversion book doesn't say anything about that. 颠覆书没有说明这一点。

A concurrently running svnadmin dump will not interfere with new commits. 并发运行的svnadmin dump不会干扰新提交。 The resulting dump file, however, will only contain the revisions that were present in the repository when you started svnadmin dump . 但是,生成的转储文件将仅包含启动svnadmin dump时存储库中存在的修订。

You'll need to grab commits made while the initial dump was running with a second dump. 您需要在初始转储与第二次转储一起运行时获取提交。

Other options you might be interested in: 您可能感兴趣的其他选项:

svnadmin hotcopy
Unlike a dump file, this will include conf and hooks . 与转储文件不同,这将包括confhooks

svnsync
For maintaining a read-only clone of an existing repository. 用于维护现有存储库的只读克隆。

Of the three, I make the most use of svnsync. 在这三个中,我充分利用了svnsync。 It allows me to keep a second copy of our repositories on a separate machine, which is closer to me. 它允许我在另一台机器上保留我们的存储库的第二个副本,这个机器离我更近。 This makes for a nice backup, as well as for faster checkouts. 这样可以提供良好的备份,以及更快的结账。 (If the svnsync clone and the original have the same UUID, you can svn co svn://the-clone and then svn switch --relocate svn://the-clone https://the-original ) (如果svnsync克隆和原始克隆具有相同的UUID,则可以svn co svn://the-clone然后svn switch --relocate svn://the-clone https://the-original

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM