本主題說明如何使用 Acronis Backup 將內容資料庫復原至原始 SharePoint 伺服器陣列。
復原至非原始伺服器陣列是比較複雜的程序。其步驟會視伺服器陣列設定及生產環境的其他參數而有所不同。
使用 SQL 用代理程式復原內容資料庫
這個方式可讓您從執行 SQL Server 之電腦的單一行程備份復原資料庫。
復原內容資料庫
在 SharePoint 2010 或更新版本中:
Mount-SPContentDatabase <資料庫> -DatabaseServer <資料庫伺服器> -WebApplication <網站 URL>
SharePoint 2007:
stsadm.exe -o addcontentdb -url <網站 URL> -databasename <資料庫> -databaseserver <資料庫伺服器>
使用 Windows 用代理程式復原內容資料庫
這個方式可讓您從執行 SQL Server 之電腦的磁碟層級程備份復原資料庫。
將內容資料庫復原至原始 SQL 伺服器
如果您要將資料庫復原到磁碟上的另一個位置,請依照<從磁碟備份復原 SQL Server 資料庫>所述復原資料庫檔案,包括資料庫附加步驟。
將內容資料庫復原至原始伺服器陣列的其他 SQL 伺服器
在 SharePoint 2010 或更新版本中:
Dismount-SPContentDatabase <資料庫>
如果您有多個名稱相同的內容資料庫,必須在此命令中使用內容資料庫 GUID,而非使用內容資料庫名稱。若要擷取內容資料庫的 GUID,請執行 Get-SPContentDatabase Cmdlet 且不使用引數。
SharePoint 2007:
stsadm -url <Web 應用程式 URL> –o deletecontentdb –databasename <資料庫>
在 SharePoint 2010 或更新版本中:
Mount-SPContentDatabase <資料庫> -DatabaseServer <資料庫伺服器> -WebApplication <網站 URL>
SharePoint 2007:
stsadm.exe -o addcontentdb -url <網站 URL> -databasename <資料庫> -databaseserver <資料庫伺服器>