export-document-cache

This command exports documents in the document cache of an XML manager to a file.

Syntax

Export all documents
export-document-cache manager file
Export documents that match the pattern
export-document-cache manager file URL-match

Parameters

manager
Specifies the name of an XML manager.
file
Specifies the file to create in the local: or temporary: directory. If you create the file in the temporary: directory, it is deleted during the next DataPower® restart.
URL-match
The shell-style regular expression that identifies documents in the document cache. The default value is *, which matches all entries.

Guidelines

The export-document-cache command exports documents in the document cache of an XML manager that match a pattern to a file. If you do not specify a pattern, the command exports all documents.

To define a pattern that includes brackets, you must escape these characters with two backward slashes. For example, use \\[abc\\] to match [abc].

After you create the file, download the file to your workstation or copy the file to a remote location for use by the import-document-cache command.

Examples

  • Export all documents from the document cache of the default XML manager to the local:///myCache file.
    # export-document-cache default local:///myCache
    Exported 10 entries from the 'default' document cache.
    #
  • Export all XSD and XSL files from the document cache of the default XML manager to the local:///myCache file.
    # export-document-cache default local:///myCache *xs[dl]
    Exported 10 entries from the 'default' document cache.
    #