Restore content database in sharepoint

sometimes, we need backup content database about sharepoint site, then restore it one day. of course, we can backup the contetn database in SQL, then restore it in Sharepoint Central Admin, but it often failed to restore DB using Central Admin, I didn't find the reason.so I had to find a good way to around it. the best is Powershell cmd.

here is my steps:

1. firsty, we need dismount the old DB

Dismount-SPContentDatabase “OldContentDatabaseName" 


2. then, attach the newe DB

Mount-SPContentDatabase Migrated_WSS_Content -DatabaseServer "SQLServerClusterName" -WebApplication <a target=_blank href="http://siteurl">http://siteurl</a>


 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章