我在Web导出/导入例程中遇到了错误。问题是导入的可行性似乎取决于网络的统计信息。

我有几个随后的同一网络导出软件包,并说#2可以正常工作(我可以看到它提取包装的内容,结果是导入Web)和#3失败(我看不出文件为提取,进口几乎立即失败)。

Import-SPWeb -IncludeUserSecurity -Path C:\Install\exportweb2.bak -Identity https://test.company.com/sites/home -Force

生成的日志文件:c: install exportweb2.bak.import.log

Import-SPWeb -IncludeUserSecurity -Path C:\Install\exportweb3.cab -Identity https://test.company.com/sites/home -Force

生成的日志文件:c: install exportweb3.cab.import.log

导入spweb:找不到文件'c: users adm_user appdata local temp 0cf9aa8f-fc19-401f-a094-094-0c6cabde6f6b exportSettings.xml'。在线:1 char:13 + import -spweb <<<< -IncludeUserSecurity -path C: install exportweb3.cab-cab -Identity https://test.company.com/站点/IPMS -FORCE + categoryInfo:InvalidData :( Microsoft.Share ... cmdletimportweb:spcmdletimportweb)[import -spweb],提交
otfoundException + FutlalQualifiedErrid:Microsoft.sharepoint.powershell.spcmdletimportweb

记录以下内容:

[23.05.2011 10:07:22] Progress: Initializing Import.
[23.05.2011 10:07:22] Warning: Import requirement file C:\Users\adm_user\AppData\Local\Temp\3\9f0699d5-bb0d-4e27-ab44-6d8f534b0271\Requirements.xml was not found no verifications ran.
[23.05.2011 10:07:22] FatalError: Could not find file 'C:\Users\adm_user\AppData\Local\Temp\3\9f0699d5-bb0d-4e27-ab44-6d8f534b0271\ExportSettings.xml'.
[23.05.2011 10:07:22] Debug:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.IO.FileInfo.Open(FileMode mode, FileAccess access, FileShare share)
   at Microsoft.SharePoint.Deployment.SPImport.DeserializeExportSettings()
   at Microsoft.SharePoint.Deployment.SPImport.Run()
[23.05.2011 10:07:22] Progress: Import did not complete.

ADM_USER帐户是农场所有机器的本地管理员,除了SQL Server,Spshelladmin的权利已授予。

包装中肯定有unignts.xml和exportSettings.xml,我与档案馆进行了检查。

我认为这是一个常见的射击麻烦,任何帮助都将不胜感激。

有帮助吗?

解决方案

检查出口包的大小。默认的驾驶室尺寸约为25MB-过去,这是您通过设置参数必须增加的限制。使用PowerShell导出SPWEB CMDLET,如果您达到限制,它将生成多个文件。您可能需要使用“压缩”参数更改此限制,以设置驾驶室大小(最多为1024MB)。

例子:

Export-SPWeb http://mysite -Path c:\backup\ExportFile -CompressionSize 1000

其他提示

我有同样的错误,但其他分辨率 - 我错过了备份文件 (默认情况下,如果备份大小大于25 MB,则SharePoint备份创建了多个文件)。

我有一个类似的问题。我还导出了一个网络(带有子网),并有几个软件包。当我尝试导入各个软件包时,我得到了您描述的错误。如果我导入主包(例如exportweb.bak,exportweb.cmp) - 它会导入Web(和subwebs)罚款。

这可能不是您描述的确切问题,是吗?

许可以下: CC-BY-SA归因
scroll top