+

Search Tips   |   Advanced Search

Export content from the filestore

Export content from the filestore to create custom themes.

We can access the filestore using the following URL:

    http://server:port/wps/mycontenthandler/dav/fs-type1/

We can obtain a compressed file of the content in the filestore using...

    http://server:port/wps/mycontenthandler/dav/fs-type1/<folder-name>/?mime-type=application/zip

To download the complete content of the filestore:

    http://server:port/wps/mycontenthandler/dav/fs-type1/<folder-name>/?mime-type=application/zip

Download the content of the themes folder:

    http://server:port/wps/mycontenthandler/dav/fs-type1/themes/?mime-type=application/zip


Automate the export using an Ant task

If we want to automate the export, we can write an Ant task as depicted in the following example:

<target name="export-mytheme">
    <get src="http://server:port/wps/mycontenthandler/dav/fs-type1/<folder-name>/?mime-type=application/zip"
        username="PortalAdminID"
        password="PortalAdminPwd"
        dest="/tmp/mytheme.zip" />
</target>

Where:

  • The <server> value is the host name of the portal.

  • The port value is the port number for WebSphere Portal.

  • The <folder-name> value is the folder to be compressed. This value is optional.

A / must follow the folder name.


Use WebDAV to connect to the filestore

Use a WebDav Client to connect to the filestore using the following url:

  • http://server:port/wps/mycontenthandler/dav/fs-type1/

Browse to the folder we need and copy the files to your local drive.


Parent Develop themes for a production portal