Detach DB会让数据库和sharepoint失去联系,影响生产环境。
Attach DB会升级数据库。
可以考虑在下班时间detach数据库后再attach一下,然后把detach的DB拷到本地测试。
Backup DB和Restore DB对应,但是两个farm必须版本一致,或者我的版本比客户的高,这样在挂的时候会自动升级。
Restore的时候会选择destination,可以新建一个DB,然后overwrite这个DB来实现,或者是restore到一个已经存在的DB上。
SQL上挂好数据库后,要到sharepoint管理中心中add content DB到相应的web app下。
Backup site collection and restored in a new web application
- Backup Content DB in SQL.
- Restore Content DB in SQL.
- Create web app in sharepoint.
- Delete old content DB.
- Add restored content DB to new web app.