SureBacukp for MySQL Port Status


Userlevel 3
Badge

 

本测试的目的是:使用SureBackup自动验证MySQL数据库的3306端口,即在MySQL数据库在正常启动状态时,SureBackup去监听3306端口是否开启。

 

需要提前编辑好xml语言,具体详情可参考以下网址:

https://helpcenter.veeam.com/docs/backup/vsphere/creating_xml_files.html?ver=110

<?xml version="1.0" encoding="utf-8" ?>
<SbRoleOptions>
<Role>
  <SbRole>
    <Id>8e0b99c8-68eb-4360-9652-c7593012ed75</Id>
    <Name>MySQL database</Name>
  </SbRole>
</Role>
<Options>
  <SbVerificationOptions>
    <ActualMemoryPercent>100</ActualMemoryPercent>
    <MaxBootTimeoutSec>600</MaxBootTimeoutSec>
    <AppInitDelaySec>120</AppInitDelaySec>
    <TestScripts>
      <TestScripts>
        <TestScript>
          <Name>MySQL Port 3306</Name>
          <Type>Custom</Type>
          <TestScriptFilePath>Veeam.Backup.ConnectionTester.exe</TestScriptFilePath>
          <Arguments>%vm_ip% 3306</Arguments>
        </TestScript>
      </TestScripts>
    </TestScripts>
    <HeartbeatEnabled>True</HeartbeatEnabled>
    <PingEnabled>True</PingEnabled>
  </SbVerificationOptions>
</Options>
</SbRoleOptions>

 

其中:<Id>值可参考以下网站生成。

https://www.guidgenerator.com/online-guid-generator.aspx

Fti8pX.jpg

 

把编辑好的xml文件,复制到VBR的C:\Program Files\Veeam\Backup and Replication\Backup\SbRoles 目录下。

qWwHjq.jpg

 

编辑SureBacukp Job,指定Virtual Lab、Application Group(如有需要时)、Link Jobs。

Th6rXG.jpg

h0aC44.jpg

XHNuiA.jpg

 

点击上图的Edit后,在Role选项里选择MySQL database。

6BHPiM.jpg

 

在Test Scripts选项里会自动识别xml文件上的配置。

81rgnl.jpg

 

其他选项保持默认,运行SureBackup Job后,查看Script验证结果。

h7PB8s.jpg

 

同理,也可以使用上述方法监听其他数据库、应用的端口号:)

 

 

 

如对以上过程有技术疑问,请联系本文作者📧:helly.wu@veeam.com


0 comments

Be the first to comment!

Comment