0

我需要将多个文档库及其所有内容和文件元数据从一台 Sharepoint 服务器复制到另一台服务器(我说的是完全独立的 Sharepoint 实例,而不仅仅是同一个 Sharepoint 实例上的不同网站集)。

我不知道我怎么能做到这一点,而且 SO 上的现有线程都没有,或者网络在我的情况下似乎不起作用。有任何想法吗?

4

1 回答 1

1

查看使用 Windows PowerShell 导出站点、列表或文档库:BoostSolutions

简而言之,Powershell 命令是:

Export-SPWeb http://yoursitename.com/site -itemurl "/DocumentLibraryName" -includeversions all -includeusersecurity -path c:\insertfolderhere\yourfile.cmp

文档库通常位于站点的根目录中,因此您应该能够按上述方式检索它们。确保使用 -includeversions 和 -includeusersecurity 标志;如果我不同时使用它们,我会遇到 Export-SPWeb 功能带来的问题。

这将创建一堆名为(在本例中)yourfile.cmp、yourfile1.cmp 等的 .cmp 文件。将所有这些复制到您的另一个农场,然后运行以下命令:

Import-SPWeb http://thenewsite.com/site -path c:\whereveryouputtheexportedfiles\yourfile.cmp -includeusersecurity

请再次注意 includeusersecurity 标志。

于 2013-05-22T18:49:00.257 回答