Createcmsmigrationprofile:Stsadm 操作 (Office SharePoint Server)

操作名称:Createcmsmigrationprofile

说明

通过提供配置文件名称、数据库服务器名称、数据库名称和数据库用户名来创建迁移配置文件。

Important重要说明:

此操作区分大小写。如果使用大写字母“C”来运行此操作,则会显示以下错误消息:“Windows SharePoint Services 管理工具遇到问题需要关闭。我们对此引起的不便表示抱歉。”

语法

stsadm -o createcmsmigrationprofile

   -profilename <profile name>

   [-description] <description>

   [-connectionstring] <connection string>

   -databaseserver <server>

   -databasename <name>

   -databaseuser <user name>

   [-databasepassword] <password>

   [-auth] <authentication type>

   -destination <URL name>

   [-rootchannel] <channel name>

   [-destinationlocale] <LCID>

   [-migrateresources]

   [-migrateacls]

   [-emailto] <e-mail addresses>

   [-emailon]

   [-keeptemporaryfiles]

   [-enableeventreceivers]

参数

参数(短名称)

是否必需

说明

profilename

一个有效的配置文件名称,例如“Profile1”

迁移配置文件的名称

description

一个有效说明,例如“This is my description”

迁移配置文件的说明

connectionstring

提供连接到 Microsoft Content Management Server 2002 数据库所需的信息,其中包括服务器名称、数据库名称、用户名、密码和身份验证类型。

databaseserver (ds)

一个有效的数据库服务器,例如“Databaseserver1”

承载 Microsoft Content Management Server 2002 数据库以及包含要迁移的内容的数据库服务器

Note注意:
数据库的名称必须代表 Microsoft Content Management Server 2002 安装。

databasename (dn)

一个有效的数据库名,例如“Databasename1”

将从中迁移内容的 Microsoft Content Management Server 2002 服务器上的数据库名称

databaseuser (du)

用来访问 Microsoft Content Management Server 2002 数据库的数据库用户名

databasepassword

用户的数据库密码

auth

以下任一值:

  • Windows 身份验证

  • SQL 身份验证

指定身份验证类型。默认情况下,启用 Windows 身份验证。

destination

一个有效的 URL,例如 http://server_name

指定要将内容迁移到的网站集的 URL。

rootchannel

一个有效的通道名称,例如“Channel1”

将作为目标网站集的根网站(例如,首要网站)的通道。仅会迁移选定网站之中和之下的内容。

destinationlocale

一个有效的区域设置 ID,例如“1033”代表英语

指定用于已迁移网站的语言。

migrateresources

以下任一值:

  • All

  • Onlyused

指定是将所有共享资源复制到目标网站集,还是仅复制由要迁移的页面使用的共享资源。

当使用 all 值时,将在下一次迁移过程中迁移所有资源,甚至包括那些未使用和未更改的资源(仅适用于完整迁移)。而仅当资源正由网站中的内容使用时,才适合使用 onlyused 值。

Note注意:
在增量迁移过程中,只会对由选定根网站之中或之下的页面使用的共享资源进行更新。

migrateacls

<无>

指定是否要从 Microsoft Content Management Server 2002 迁移访问控制列表 (ACL)。

emailto

一个有效的电子邮件地址,格式为 someone@example.com

完成迁移作业后,将 Success 或 Failure 通知发送到电子邮件地址列表中。使用分号来分隔多个电子邮件地址。

emailon

以下任一值:

  • Success

  • Failure

  • None

  • Both

与 -emailto 参数一起使用。将 Success、Failure、None 或 Both 通知发送到电子邮件地址列表中。

keeptemporaryfiles

以下任一值:

  • Never

  • Always

  • Failure

指定是否应在迁移后移除临时导出的文件。

enableeventreceivers

以下任一值:

  • Yes

  • No

启用或禁用事件跟踪。

出于性能原因,默认情况下,会在导入过程中禁用 enableeventreceivers 参数。但是,如果需要捕获事件(例如,如果您具有依赖于这些事件的第三方 Web 部件),则可以启用此参数来跟踪事件。