Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • WebSphere Portal Family wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 6.0
  • 6.1
  • 6.1.0.1
  • 6.1.5
  • 7.0
  • 7.0.0.2
  • 8.0
  • actions
  • administrator
  • authoring
  • Banking template
  • best practices
  • blogs
  • builder
  • building a site
  • caching
  • catalog
  • Clickstream Engine
  • clusters
  • ConfigEngine tasks
  • content
  • customizing
  • databases
  • demo
  • deployment
  • deployment scenario
  • developer
  • developing
  • device class
  • elements
  • examples
  • Express
  • feature set
  • fix pack 2
  • Government to Business template
  • info center
  • information center
  • installation
  • installing
  • LDAP
  • Learning
  • libraries
  • LikeMinds Recommendation Engines
  • logging
  • mentors
  • message catalog
  • messages
  • migration
  • mobile
  • mobile devices
  • mobile experience
  • mobile experience 8.0
  • mobile theme
  • mobile webkit
  • MPA
  • multiplatform
  • pages
  • performance
  • personalization
  • planning
  • portal
  • Portal 6.1
  • Portal 8 theme
  • portlets
  • product doc
  • product documentation
  • projects
  • properties
  • Redbooks
  • Redbooks Wiki
  • remember me cookie
  • resources
  • REST
  • Retail Vendor template
  • rules
  • samples
  • search
  • security
  • sifters
  • sites
  • solutions catalog
  • syndication
  • test infrastructure
  • theme
  • theme optimization
  • topologies
  • troubleshooting
  • tutorials on personalization
  • video
  • wcm
  • web content
  • webkit
  • WebSphere Portal
  • WebSphere Portlet Factory
  • wikis
  • workflows
  • worksheet
  • XML configuration interface
  • z/os
  • zos
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Building a Web site using Lotus Web Content Management 6.1 > 5.1.1.3 Exporting and importing libraries
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

5.1.1.3 Exporting and importing libraries 

expanded Abstract
collapsed Abstract
No abstract provided.
Untitled Document

Table of contents | Next | Previous

Exporting and importing libraries

WCM provides a capability to manually export a WCM library from a source environment and then manually import it to a target environment. This capability allows you to backup WCM libraries and also moves WCM libraries between environments. However, this process cannot replace the WCM Syndication process due to the following reasons -

a) Only published items can be exported using this method. This method will not export draft items.
b) Only the current versions of items will be exported using this method.
c) Child items will only be exported and imported if the parent items have been successfully exported and imported.
d) If an item exists on the target server with the same path, name and ID, then the item is overwritten.

Note: If JSP components are being used, you will need to manually move the related JSP files to the target environment. The WCM Syndication process and the exporting and importing libraries method behave the same way in this regard.

 

The configuration information required to perform the WCM library export and import process is stored in the file <wp_profile_root>/PortalServer/wcm/config/wcm60_conf.xml

E.g. C:\IBM\WebSphere\wp_profile\PortalServer\wcm\config\wcm60_conf.xml

The configuration file contains property tags with “name” and “value” attributes.

E.g. <property name="ExportDir" value="C:/JCR_Export"/>

 

Note: Please use the / (forward slash) character for separating directories on all platforms.
The table below describes the various property values used in the configuration file.

 

The server that the data is being exported from is called the source server, and the server that the data is being imported into is called the target server.

 

Property Name

Description

ExportDir

The directory path on the source server where the exported library will be saved once the export library process is successfully completed.

This property is used by the export process.

Example -
<property name="ExportDir" value="C:/JCR_Export" />

ImportDir

The directory path from where the import library process will read the files to be imported to the target server.

If you copy the exported directory from the source server to the target server, this value will be the directory path available on the target server.

If exporting and importing across a network, this can be the same directory as the one specified in "ExportDir".

This property is used by the import process.

Example -
<property name="ImportDir" value="C:/JCR_Import" />

SourceServerPort

The host name and port for the source server.
The default value set for this property is = http://$ {WpsHostName}:${WpsHostPort}

During our export test we used the default value.

This property is used by the export process.

Example -
<property name="SourceServerPort" value="http://$ {WpsHostName}:${WpsHostPort}"/>

TargetServerPort

The host name and port for the target server.

The default value set for this property is = http://$ {WpsHostName}:${WpsHostPort}

During our import test we used the default value.

This property is used by the import process.

Example -
<property name="TargetServerPort" value="http://${WpsHostName}:${WpsHostPort}"/>

ExportUserId

This value is only required if the source server does not use the default Portal administrator ID “wpsadmin”. Enter the short name of the administrator user.

The default value set for this property is = ${PortalAdminId}

During our export test we used the default value as our target environment was configured to use wpsadmin as the Portal administrator.

This property is used by the export process.

Example -
<property name="ExportUserId" value="${PortalAdminId}"/>

ExportPassword

The administrator user password on the source server.

The default value set for this property is = ${PortalAdminId}

During our export test we used the default value as we had specified the Portal administrator password in the <wp_profile_root> / ConfigEngine/properties/wkplc.properties file.

This property is used by the export process.

Example -
<property name="ImportUserId" value="${PortalAdminId}"/>

ImportUserId

This value is only required if the target server does not use the default Portal administrator ID “wpsadmin”. Enter the short name of the administrator user.

The default value set for this property is = ${PortalAdminId}

During our import test we used the default value as our target environment was configured to use wpsadmin as the Portal administrator.

This property is used by the import process.

Example -
<property name="ExportPassword" value="${PortalAdminPwd}"/>

ImportPassword

The administrator user password on the target server.

The default value set for this property is = ${PortalAdminId}

During our import test we used the default value as we had specified the Portal administrator password in the <wp_profile_root> / ConfigEngine/properties/wkplc.properties file.

This property is used by the import process.

Example -
<property name="ImportPassword" value="${PortalAdminPwd}"/>

WebLib

The name of the WCM library to be transferred. The default option is to select the Web Content libraries by name. In order to select the libraries by UUID, make sure to also change the WebLibProperty below.

The default value set for this property is = Web Content.

During our export test we used the value = RiverBend.

This property is used by the export process.

Example -
<property name="WebLib" value="RiverBend"/>

WebLibProperty

In order to select the libraries by name (set by default), use the value = icm:title

To select the libraries by UUID, use the value = jcr:uuid

The default value set for this property is = icm:title

During our export test we used the default value.

This property is used by the export process.

Example -
<property name="WebLibProperty" value="icm:title"/>


Exporting a library

Follow these steps to export a library on the source server -

  1. Enter the property values in the <wp_profile_root>/PortalServer/wcm/config/wcm60_conf.xml file
  2. Navigate to the directory <wp_profile_root>/ConfigEngine in the console
  3. Run the following command–
    • Windows platform: ConfigEngine.bat export-wcm-data
    • Unix platform: ConfigEngine.sh export-wcm-data
  4. Verify the export process completed successfully by carefully reviewing the messages available in the console and also check the Portal logs.
  • The screen shot of the sample exported directory and its contents is provided below.



Figure: Sample Exported Directory Contents

 

Importing a library

Follow these steps to import a library on the targer server -

  1. You may want to copy the exported directory from the source server to the target server OR choose to perform the import process over the network.
  2. Enter the property values in the <wp_profile_root>/PortalServer/wcm/config/wcm60_conf.xml file
  3. Navigate to the directory <wp_profile_root>/ConfigEngine in the console
  4. Run the following command–
    • Windows platform: ConfigEngine.bat export-wcm-data
    • Unix platform: ConfigEngine.sh export-wcm-data
  5. Verify the import process completed successfully by carefully reviewing the messages available in the console and also check the Portal logs.
  6. Note: If the source and target environments don't use the same LDAP server, you will notice warning messages. You will need to use the Member Fixer tool to resolve this issue.

  7. Stop the Portal server.
  8. Reset the Web content event log.
  9. Start the Portal server.
  10. Check the target Portal administration portlet and verify if the new library is visible in the Web Content Libraries portlet.

 

Exporting and importing multiple libraries

You can only export a single library at a time by running the "export-wcm-data" command. The "import-wcm-data" command can be used to import multiple libraries at one time. If you are exporting and importing multiple libraries it is best practice to export your individual libraries to the same directory, and then import all your libraries from that directory at the same time by using the "import-wcm-data" command.

 


expanded Article information
collapsed Article information
Category:
IBM Redbooks: Building a Web site using Lotus Web Content Management 6.1
Tags:
6.1, building a site, WCM

This Version: Version 10 October 22, 2009 11:24:10 AM by Amanda J Bauman  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (3)
collapsed Versions (3)
Version Comparison     
Version Date Changed by               Summary of changes
This version (10) Oct 22, 2009 11:24:10 AM Amanda J Bauman  
9 Nov 5, 2008 9:00:37 PM John Bergland  
7 Nov 4, 2008 6:07:23 PM John Bergland  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use