版本库备份
上一页  第 3 章 版本库  下一页

版本库备份

无论你使用何种版本库,定期维护和验证版本库备份非常重要,或许你可以访问最近版本的文件,但是如果没有版本库,所有的历史将会丢失。

The simplest (but not recommended) way is just to copy the repository folder onto the backup medium.

最简单(但不推荐)的方式,是直接复制库文件夹到备份的媒体(新的文件夹)

However, you have to be absolutely sure that no process is accessing the data. In this context, access means any access at all. If your repository is accessed at all during the copy, (web browser left open, WebSVN, etc.) the backup will be worthless.

然而,要绝对确保,没有进程正在存取数据。。。

 

推荐的方法是运行

The recommended method is to run

svnadmin hotcopy path/to/repository path/to/backup
    

to create a copy of your repository in a safe manner. Then backup the copy.

以安全的方式,创建库拷贝,然后再备份库拷贝。

The svnadmin tool is installed automatically when you install the Subversion command line client. The easiest way to get this is to check the option to include the command line tools when installing TortoiseSVN, but if you prefer you can download the latest version of command line tools directly from the Subversion website.

 posted on 2020-02-04 19:12  宝兰  阅读(246)  评论(0编辑  收藏  举报