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>


 

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。