• 备份 Repository Backup


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

  • 相关阅读:
    【转】C++虚函数表
    vector的增长模式
    C++ 四种类型强制转换
    【转】new和malloc的区别
    C++堆和栈的区别
    C/C++中的内存分区
    mySQL__function课堂笔记和练习
    mySQL__storage课堂笔记和练习
    mySQL__Variable课堂笔记和练习
    mySQL__View课堂笔记和练习
  • 原文地址:https://www.cnblogs.com/CodeGear/p/12260638.html
Copyright © 2020-2023  润新知