backup restore &detach attach

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

  1. Backup Content DB in SQL.
  2. Restore Content DB in SQL.
  3. Create web app in sharepoint.
  4. Delete old content DB.
  5. Add restored content DB to new web app.

posted @ 2012-08-16 19:02  l'oiseau  阅读(193)  评论(0编辑  收藏  举报