有没有一种简单的方法(像PowerShell命令一样)来改变SiteCollection的URL?
或者是导出SiteCollection -> delete SiteCollection (因为GUID)->导入SiteCollection的唯一方法?
发布于 2011-03-21 19:37:34
是的没错。我移动站点的脚本看起来像这样:
stsadm -o backup -url "http://domain/sandpit/site" -filename "c:\site.dat"
#delete old site collection
#run gradual site delete job
stsadm -o restore -url "http://domain/sites/site" -filename "c:\site.dat"发布于 2011-03-21 20:09:22
您不能真正轻松地更改网站集的URL,因为Sharepoint以特殊的方式与IIS紧密交织在一起;-)
有两种可能的方法来更改URL:
stsadm -o backup和stsadm -o restore)为"real“方法有一个nice writeup for Sharepoint 2007 here,尽管它在SharePoint2010上仍然有效。
PS:正如您所问到的Powershell,您可以使用Backup-SPSite (MSDN)和Restore-SPSite (MSDN)来做与使用stsadm (已弃用)相同的事情。
发布于 2012-03-05 02:12:02
我自己也做过一次。
首先,备份你的站点(我用的是powershell,这很简单):http://www.sharepointmonitor.com/2011/02/sharepoint-backup-using-powershell/
它在我的MOSS 2010上对我来说就像一个护身符。
https://stackoverflow.com/questions/5376380
复制相似问题