stsadm路径:

sharepoint 2007

cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

sharepoint2010

cd C:\Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN

 

做个举例

备份网站命令:

Backup-SPSite -Identity http://ABC  -Path  c:\20120801.bak

还原网站命令 

Restore-SPSite -Identity http://ABC -Path  c:\20120801.bak -DatabaseServer moss2010 -DatabaseName Wss_Content -force 


数据库删除命令:

stsadm -o deletecontentdb -url http://sidevvm02 -databasename WSS_Content_SIDEVVM02 

数据库附加命令:

stsadm -o addcontentdb -url http://sidevvm02 -databasename WSS_Content_SIDEVVM02