本文說明如何進行 Microsoft Azure 備份 Server (MABS) V4 或更新版本的靜默無人值守安裝。 你可以建立一個 MABSSetup.ini 設定檔,並從升格命令提示字元執行 Setup.exe,無需互動式設定即可部署 MABS。
此程序不適用於MABS V1、V2或V3。
安裝備份伺服器
若要安裝備份伺服器,請執行下列命令:
在進階命令提示字元中執行下列命令,確保 Program Files 底下有名為「Microsoft Azure Recovery Services Agent」的目錄。
mkdir "C:\Program Files\Microsoft Azure Recovery Services Agent"請先在已提高權限的命令提示字元中安裝 MABS 先決條件。 下列命令可能會導致自動伺服器重新啟動,但如果未發生,建議手動重新啟動。
start /wait dism.exe /Online /Enable-feature /All /FeatureName:Microsoft-Hyper-V /FeatureName:Microsoft-Hyper-V-Management-PowerShell /quiet在裝載 Azure 備份伺服器 V4 或更新版本的伺服器上建立文字檔。 (您可以在記事本或其他文字編輯器中建立檔案)。將檔案儲存為 MABSSetup.ini。
在 MABSSetup.ini 檔案中貼上下列程式碼。 以您的環境值取代括號內的文字 (<>)。 範例如下列文字:
警告
Microsoft 建議您使用最安全的可用驗證流程。 這個程序描述的驗證流程需要在應用程式中具備極高的信任度,且伴隨著其他流程並未面臨的風險。 請確定您在安裝完成後刪除 MABSSetup.ini 檔案。
[OPTIONS] UserName=administrator CompanyName=<Microsoft Corporation> SQLMachineName=localhost SQLInstanceName=<SQL instance name> SQLMachineUserName=administrator SQLMachinePassword=<admin password> SQLMachineDomainName=<machine domain> ReportingMachineName=localhost ReportingInstanceName=SSRS SqlAccountPassword=<admin password> ReportingMachineUserName=<username> ReportingMachinePassword=<reporting admin password> ReportingMachineDomainName=<domain> VaultCredentialFilePath=<vault credential full path and complete name, without spaces in both> SecurityPassphrase=<passphrase> PassphraseSaveLocation=<passphrase save location, an existing directory where the passphrase file can be created> UseExistingSQL=<1/0 use or do not use existing SQL>儲存檔案。 接著,在安裝伺服器的已提高權限命令提示字元中,輸入下列命令:
start /wait <cdlayout path>/Setup.exe /i /f <.ini file path>/setup.ini /L <log path>/setup.log
您可以使用這些參數進行安裝:
/f:.ini 檔案路徑
/l:日誌路徑
/i:安裝路徑
/x:解除安裝路徑
下一步
在安裝備份伺服器之後,請了解如何準備您的伺服器或開始保護工作負載。