码迷,mamicode.com
首页 > 其他好文 > 详细

备份 Repository Backup

时间:2020-02-04 20:13:32      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:folder   automatic   idt   取数   维护   asi   release   code   http   

版本库备份
上一页  第 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.

备份 Repository Backup

标签:folder   automatic   idt   取数   维护   asi   release   code   http   

原文地址:https://www.cnblogs.com/CodeGear/p/12260638.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!