本页介绍了如何在 Windows 主机上安装备份和灾难恢复代理,以及执行其他操作,例如检查备份状态、重启和卸载备份和灾难恢复代理。
工作原理
适用于 Microsoft Windows 的备份和灾难恢复代理会在“本地系统”账号下作为 Windows 服务运行。Backup and DR 代理会将日志写入其安装目录中的日志文件。对于 Microsoft Windows Server,安装程序采用 connector-Win32-<version>.exe 格式。
安装 Windows 备份和灾难恢复代理时,您可以选择安装更改跟踪驱动程序。如果您计划保护 Microsoft SQL Server 应用,请安装带有更改跟踪驱动程序的备份和灾难恢复代理,以实现高效的增量备份。
NTFS 和 ReFS 卷支持 Microsoft SQL Server。
更改跟踪驱动程序不支持 SMB 卷。
安装代理后,您需要初始化备份/恢复设备与 Backup and DR 代理之间的可信通信。此操作只需执行一次。密钥需要在生成后两小时内添加。如果密钥过期,您需要生成新密钥。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eThis guide outlines the process of installing, managing, and uninstalling the Backup and DR agent on Windows hosts, including steps for checking agent status and regenerating the secret key.\u003c/p\u003e\n"],["\u003cp\u003eInstalling the Backup and DR agent on Windows can be done through a graphical wizard or via the command prompt, with the option to include a Change Tracking Driver for SQL Server backups.\u003c/p\u003e\n"],["\u003cp\u003eAfter installation, the agent runs as a Windows service, and a secret key is generated which must be used within two hours to establish trusted communication with the backup/recovery appliance.\u003c/p\u003e\n"],["\u003cp\u003eThe guide details how to check if the Backup and DR agent is running, how to regenerate the secret key, how to restart the agent, and how to add a previously saved key within the management console.\u003c/p\u003e\n"],["\u003cp\u003eThe Backup and DR agent can also be uninstalled via the command prompt or by using the uninstallation application that comes with the installation.\u003c/p\u003e\n"]]],[],null,["# Backup and DR agent on Windows hosts\n\nThis page describes how to install the Backup and DR agent on a Windows host and\nperform other operations such as check the status of your backup, restart, and\nuninstall the Backup and DR agent.\n\nHow it works\n------------\n\nThe Backup and DR agent for Microsoft Windows runs as\na Windows service under the Local System account. The Backup and DR agent\nwrites logs to a log file in its installation directory. For Microsoft\nWindows Server, the installer comes in `connector-Win32-\u003cversion\u003e.exe` format.\n| **Note:** If you intend to manage multiple clustered Windows hosts, then install a Backup and DR agent on each host.\n\nWhen you install the Windows Backup and DR agent, you have the option\nto install the Change Tracking Driver. If you plan to protect Microsoft SQL\nServer applications, install the Backup and DR agent with the\nChange Tracking Driver to enable efficient incremental backups.\n\nMicrosoft SQL Server is supported on NTFS and ReFS volumes.\nThe Change Tracking Driver doesn't support SMB volumes.\n\nAfter you install the agent, you need to initialize trusted communications\nbetween the backup/recovery appliance and the Backup and DR agent. This only\nneeds to be done once.\nThe secret key needs to be added within two hours of being generated. If the\nsecret key expires, you need to [generate a new key](#regenerate).\n\nInstall the Backup and DR agent on a Windows host\n-------------------------------------------------\n\nTo install the Backup and DR agent on a Windows host, use the following\ninstructions:\n\n1. Download the Windows Backup and DR agent from the\n [Obtain the right Backup and DR agent for your host](/backup-disaster-recovery/docs/concepts/about-connector#right-connector) section.\n\n2. Log on to the host as a user with the **Administrator** account type.\n\n3. If this is a Compute Engine instance, you need to ensure the iSCSI initiator\n is started and also ensure it auto-starts upon reboot. To do this, launch the\n **iSCSI Initiator** application using the following steps.\n\n 1. Click the **Start Menu**.\n\n 2. Type in **iSCSI Initiator** to find the application.\n\n 3. Launch the process.\n\n 4. When prompted to enable iSCSI, click **Yes**.\n\n The **iSCSI Initiator** page appears. To close it, click **OK**.\n4. Copy the installer file to your Windows server.\n\n5. Launch `connector-win32-`\u003cvar translate=\"no\"\u003eversion\u003c/var\u003e`.exe.`\n\n6. Click **Run** and follow the setup wizard instructions.\n\n7. Select the designated location where you want to install the agent and\n click **Next**.\n\n8. If you intend to protect SQL Server databases, select\n **Backup and DR agent with Change Tracking Driver** and click **Next**.\n\n9. Select the\n **Add windows Firewall rules to enable communication on the default port (5106)**\n checkbox and click **Next**.\n\n | **Note:** Port 5106 must be open for UDSAgent to ensure that the backup/recovery appliance can communicate with the agent running on the host. This requires an ingress firewall rule where the backup/recovery appliance is the source, the host running the agent is the target and the target port is 5106. Additionally, you don't need to add port 5106 to the default ingress rule created for the appliance, as this specifies the appliance as the target.\n10. Click **Install**.\n\n11. After you install the agent, a secret key is displayed. Save the key in\n a notepad or editor and click **Next** . You need to add this in the Backup\n and DR agent section of [Add Windows host](/backup-disaster-recovery/docs/configuration/supported-windows).\n This secret key is valid for 2 hours.\n\n | **Note:** If at completion, the agent doesn't display a secret key, you need to manually [generate a key](#regenerate).\n12. Click **Finish**.\n\n### Check Backup and DR agent status\n\nAfter the agent is installed, you can verify its status on the Windows hosts.\n\n#### Verify the agent is running\n\nTo verify that the Backup and DR agent is running, run the following command\non the host. This opens up the Microsoft Management Console (MMC) snap-in\nfor **Services**.\n\n1. Run the following command:\n\n services.msc\n\n2. Verify the following services are both in the **Running** status with\n **Automatic** startup type:\n\n - Google Cloud Backup and DR agent\n\n - Google Cloud Backup and DR CBT agent\n\n### Install the Backup and DR agent from the Windows command prompt\n\nTo install the Backup and DR agent from a script or from a Windows command\nprompt, use the following instructions.\n\n1. Open a Windows Command prompt using the **Run as administrator** option.\n\n2. Run the following command from the directory where you copied the agent\n installer file.\n\n connector-Win32-\u003cvar translate=\"no\"\u003eversion\u003c/var\u003e.exe /SUPPRESSMSGBOXES /NORESTART /VERYSILENT /TYPE=FULL\n\n### Regenerate the secret key\n\nThe secret key that is generated in the\n[Install the Backup and DR agent on a Windows host](#install)\nsection is valid only for two hours. You need to add it to the management\nconsole within this timeframe or generate a new one.\n\nTo generate a new key and add it to the management console, use the following\ninstructions:\n\n1. Open a Windows Command prompt using the **Run as administrator** option.\n\n2. Change to the install directory. By default, the command would be\n `cd C:\\Program Files\\Google Cloud Backup and DR`:\n\n - To reset the secret key after confirmation the action, run the following\n command:\n\n UDSAgent secret --reset\n\n - To reset the secret immediately without confirmation, run the following\n command:\n\n UDSAgent secret --reset --restart\n\n3. Save the secret key in a notepad or in editor. This secret key is valid for\n two hours.\n\n### Restart the Backup and DR agent on a Windows host\n\nTo restart the Backup and DR agent on a Windows host use the following\ninstructions:\n\n1. Open **services.msc** on the host.\n\n2. Select **Google Cloud Backup and DR agent** and click **Restart**.\n\n### Uninstall the Backup and DR agent\n\nTo uninstall the Backup and DR agent, use the following instructions:\n\n1. Open a Windows Command prompt using the **Run as administrator** option.\n\n2. Go to the c`:\\Program Files\\Google Cloud Backup and DR` folder created\n during the installation.\n\n3. Select and double-click the uninstaller executable: `unins000.exe`\n\n4. Click **Yes** to confirm and then click **OK** to finish.\n\n### Uninstall the Backup and DR agent from command prompt\n\nTo uninstall the Backup and DR agent using a script or from a command prompt,\nuse the following instructions.\n\n1. Open a Windows Command prompt using the **Run as administrator** option.\n\n2. Run the following command.\n\n \"C:\\Program Files\\Google Cloud Backup and DR\\unins000.exe\" /VERYSILENT /NORESTART /SUPPRESSMSGBOXES\n\n### Add a secret key\n\nIf you want to update the secret key or if you didn't add the secret key\nthe first time, you can add in the Windows host using the following\ninstructions:\n\n1. Go to management console, select **Manage** and then select **Hosts**.\n\n2. Right-click the Windows host and choose **Edit**.\n\n3. Go to the **Backup and DR agent Settings** section and find the\n **Secret** field.\n\n4. Paste the secret key that you saved earlier in the **Secret** field\n and click **Save** . Ensure the Certificate status changes to **Valid**.\n\nWhat's next\n-----------\n\n- To install the Backup and DR agent on a Linux host, see\n [Install the Backup and DR agent on a Linux host](/backup-disaster-recovery/docs/configuration/linux-agent)\n\n- To install the Backup and DR agent on a Windows host, see\n [Backup and DR agent on Windows hosts](/backup-disaster-recovery/docs/configuration/windows-agent)\n\n- To upgrade the Backup and DR agent, see\n [Maintain Backup and DR agents on hosts](/backup-disaster-recovery/docs/configuration/manage-agent)"]]