本頁說明如何在 Windows 主機上安裝備份和 DR 代理程式,以及執行其他作業,例如檢查備份狀態、重新啟動及解除安裝備份和 DR 代理程式。
運作方式
Microsoft Windows 的備份和災難復原代理程式會以本機系統帳戶的 Windows 服務身分執行。備份和 DR 代理程式會將記錄寫入安裝目錄中的記錄檔。針對 Microsoft Windows Server,安裝程式會採用 connector-Win32-<version>.exe 格式。
安裝 Windows 備份和災難復原代理程式時,您可以選擇安裝變更追蹤驅動程式。如果您打算保護 Microsoft SQL Server 應用程式,請使用變更追蹤驅動程式安裝備份和 DR 代理程式,以便進行有效的增量備份。
Microsoft SQL Server 支援 NTFS 和 ReFS 磁碟區。變更追蹤驅動程式不支援 SMB 磁碟區。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\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)"]]