Command line interface for migration > Migrating web content repository data > Exporting web content repository data

Exporting web content repository data
When you export data from a web content repository, you export the data to a zip file.
Example 29
strs-migrate.bat -d MSSQL -m EXPORT -n strsWeb -o 1433 -p myPwd -s WMF3K55 -u sa -z C:\strs_data\myDb.zip
 
Example 30
strs-migrate.bat -d ORACLE -i abc321 -m EXPORT -n strsWeb -o 1521 -p myPwd -s salma -u sys -z C:\strs_data\myDb.zip
 
Exporting a subset of all document definitions
The export described above includes all document definitions and related resources in the web content repository.
You can use the -b flag or the --docdefbatch flag to export a subset of the document definitions in the web content repository. The -b/--docdefbatch flags take an xml file as argument, and this xml file defines which document definitions to export. The xml syntax is illustrated by the following example:
<?xml version="1.0" encoding="UTF-8" ?> 
<exportpackage xmlns="http://schemas.streamserve.com/exportresourcelist/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<exportinfo/>
<templates>
  <template>
    <docdef guid="4028C00E-3A6E-9B15-013A-6E9FF4550001"/>
  </template>
  ...
  <template>
    <docdef guid="4028C00E-3A6E-A888-013A-BC1C8E47000F"/>
  </template>
</templates>
</exportpackage>
You can create the file manually or run list-resources.bat or the UNIX equivalent list-resources.sh to generate the xml file. See Running list-resources.bat for more information.
Note:
You can only run list-resources.bat/list-resources.sh against a runtime repository. This means the output xml will only contain published document definitions.
Example 31
strs-migrate.bat -d MSSQL -m EXPORT -n strsWeb -o 1433 -p myPwd -s WMF3K55 -u sa -z C:\strs_data\myDb.zip -b C:\strs_data\ListResources.xml
 
Example 32
strs-migrate.bat -d ORACLE -i abc321 -m EXPORT -n strsWeb -o 1521 -p myPwd -s salma -u sys -z C:\strs_data\myDb.zip -b C:\strs_data\ListResources.xml
 
OpenText StreamServe 5.6 Updated: 2013-03-01