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>
时间: 2025-01-20 01:41:31

Restore content database in sharepoint的相关文章

小议:SharePoint Content Database Status: Read Only与Offline

我们知道SharePoint依赖于SQL Server的Content Database来做数据存储的,但有些企业在管理数据时会提出很多需求:比如Content Database 1只存储客户信息相关的Site Collection:存储在某些Content Database下的Site Collection里的数据只能读不能写等等需求,那么面对这些需求,就需要我们精准的了解Content Database的Status以及如何设置? Content Database 的Status分2钟:Re

SharePoint 2013的限制(一)Web Application 和Content Database

Web Application 的限制 SharePoint 2013 Farm最大支持20个WebApplication.这个限制和Application Pool的限制无关,是对于整个Farm来讲的.微软建议把Web Application的数目控制的越小越好.如果想要多个不同名字的site,可以用创建host named 网站集来代替添加新的web application. 一个We Application最多支持5个Zone.这个是SharePoint定义死的,不可修改. 一个Web A

EXTRACT FILES AND IMAGES FROM A SHAREPOINT CONTENT DATABASE

If you ever had the problem where you need to extract files from a SharePoint Content Database or normal SQL Database stored as binary, this post will help you. The script I have included will export all the content from the SharePoint Content Databa

To restore the database on a new host-将数据库恢复至一个新的主机上

To restore the database on a new host:1. Ensure that the backups of the target database are accessible on the new host.2. Configure the ORACLE_SID on hostb.3. Start RMAN on hostb and connect to the target database without connecting to the recovery c

Restore Oracle database to another server

1. Copy or remotely mount the backupset folder from the source server to the target server 2. On the target server, export ORACLE_SID as same as the source database and run "rman target /" 3. Restore spfile from backup: RMAN> startup nomount;

Create Oracle Enterprise Manager repository data after restore a database from another server

1. Set password for SYS in password file: orapwd file=$ORACLE_HOME/dbs/orapw<ORACLE_SID> 2. Drop repos data copied from the original database ( you may need to unlock sysman user first ): emca -deconfig dbcontrol db -repos drop 3. If emca cannot dro

SharePoint Content Deployment prerequisite——Error features deactivate automation

对于Content Deployment的过程简而言之就是: General Application Settings -> Content Deployment ->1) Configure content deployment :Connection Security ->Do not require encryptionSource Status Check ->Disable Source Status Check->OK2) Check deployment of

How to backup and restore database in SQL Server

/*By Dylan SUN*/ If you want to backup and restore one database in SQL Server. Firstly, create a shared folder, and add everyone with read/write right. Secondly, backup your database. You can use the following script : backup database DatabaseName to

how to set default content type in document set in Sharepoint

I had encounter a issue when set default content type in document set, had to work around it Create a custom document set in library, besides I want the document set only contains a content type I want to use, hence add a custom content type in the d