Skip to Content Information Center
Markvision Enterprise

Markvision Enterprise

备份和还原数据库

注意:  执行备份和还原过程时可能会丢失数据。请确保正确地执行这些步骤。

    备份数据库和应用程序文件

    我们建议定期备份您的数据库。

  1. 停止 Firebird 服务和 Markvision Enterprise 服务。

    1. 打开运行对话框,然后键入 services.msc

    2. 用鼠标右键单击 Firebird Guardian - DefaultInstance,然后单击停止

    3. 用鼠标右键单击 Markvision Enterprise,然后单击停止

  2. 浏览安装 Markvision Enterprise 的文件夹。

    例如:C:\Program Files\

  3. 备份应用程序和数据库文件。

    备份应用程序文件

    将以下文件复制到一个安全的存储库:

    • Lexmark\mve_encryption.jceks
    • Lexmark\mve_truststore.p12
    • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
    • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\encryption.properties
    • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\platform.properties
    • Lexmark\Markvision Enterprise\apps\library
    • Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
    • Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\encryption.properties
    • Lexmark\Markvision Enterprise\jre\lib\security\cacerts
    • Lexmark\Markvision Enterprise\tomcat\conf\server.xml
    • 注意:  确保这些文件被正确存储。没有 mve_encryption.jceks 文件中的加密密钥,则无法恢复以加密格式存储在数据库和文件系统中的数据。

    备份数据库文件

    执行下面的任一操作:

    注意:  以下文件使用默认的数据库名称。这些说明还适用于定制的数据库名称。

    • 如果您使用 Firebird 数据库,请将以下文件复制到一个安全的存储库。必须定期备份这些文件以避免数据丢失。
      • Lexmark\Markvision Enterprise\firebird\security2.fdb
      • 如果您使用自定义数据库名称,请更新以下文件:

        • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
        • Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
        • Lexmark\Markvision Enterprise\apps\mve-data-service/WEB-INF\classes\application.yml
        • Lexmark\Markvision Enterprise\firebird\aliases.conf
      • Lexmark\Markvision Enterprise\firebird\data\QUARTZ.FDB
      • Lexmark\Markvision Enterprise\firebird\data\MONITOR.FDB
      • Lexmark\Markvision Enterprise\firebird\data\FRAMEWORK.FDB
    • 如果您使用 Microsoft SQL Server,请创建 FRAMEWORK、MONITOR 和 QUARTZ 的备份。
    • 如需更多信息,请与您的 Microsoft SQL Server 管理员联系。
  4. 重新启动 Firebird 服务和 Markvision Enterprise 服务。

    1. 打开运行对话框,然后键入 services.msc

    2. 用鼠标右键单击 Firebird Guardian - DefaultInstance,然后单击重新启动

    3. 用鼠标右键单击 Markvision Enterprise,然后单击重新启动

    还原数据库和应用程序文件

    警告—可能的损坏:  当您升级 MVE 时,数据库可能会改变。不要还原从先前版本创建的数据库备份。

  1. 停止 Markvision Enterprise 服务。

    如需更多信息,请参阅备份和还原数据库step 1

  2. 浏览安装 Markvision Enterprise 的文件夹。

    例如:C:\Program Files\

  3. 还原应用程序文件。

    使用您在备份过程中保存的文件替换下列文件:

    • Lexmark\mve_encryption.jceks
    • Lexmark\mve_truststore.p12
    • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
    • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\encryption.properties
    • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\platform.properties
    • Lexmark\Markvision Enterprise\apps\library
    • Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
    • Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\encryption.properties
    • Lexmark\Markvision Enterprise\jre\lib\security\cacerts
    • Lexmark\Markvision Enterprise\tomcat\conf\server.xml

    注意:  只有当新的 MVE 安装是相同的版本时,您才能将数据库备份还原为新的 MVE 安装。

  4. 还原数据库文件。

    执行下面的任一操作:

    • 如果您使用 Firebird 数据库,请替换您在备份过程中保存的以下文件:
    • 注意:  以下文件使用默认的数据库名称。此说明还适用于定制的数据库名称。

      • Lexmark\Markvision Enterprise\firebird\security2.fdb
      • 如果您使用自定义数据库名称,则以下文件也被还原:

        • Lexmark\Markvision Enterprise\apps\dm-mve\WEB-INF\classes\database.properties
        • Lexmark\Markvision Enterprise\apps\mve-data-service\WEB-INF\classes\database.properties
        • Lexmark\Markvision Enterprise\apps\mve-data-service/WEB-INF\classes\application.yml
        • Lexmark\Markvision Enterprise\firebird\aliases.conf
      • Lexmark\Markvision Enterprise\firebird\data\QUARTZ.FDB
      • Lexmark\Markvision Enterprise\firebird\data\MONITOR.FDB
      • Lexmark\Markvision Enterprise\firebird\data\FRAMEWORK.FDB
    • 如果您使用 Microsoft SQL Server,请联系您的 Microsoft SQL Server 管理员。
  5. 重新启动 Markvision Enterprise 服务。

    如需更多信息,请参阅备份和还原数据库step 4

本文章有帮助吗?
Top