Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Request URI: /path/to/some/resource/fcr:export

Methods: GET, POST

Warning

Exporting large trees of resources may fail because of memory limitations.  Exporting 250,000 simple objects (only the system-defined properties) was successful and resulted in a 400MB export file, but exporting larger sets of resources failed.  To work around this limitation, you can segment your repository (for example, into several top-level directories each containing 250,000 or fewer resources) and export each top-level directory as a separate export file.

Note

Objects are exported and imported relative to the request URI path given. E.g., if you run:

Code Block
curl "http://localhost:8080/rest/path/to/resource/fcr:export" > export.xml
curl -X POST --data-binary "@export.xml" "http://localhost:8080/rest/somewhere/else"

The resource will be imported to http://localhost:8080/rest/somewhere/else/resource.

...

Status
subtletrue
colourGreen
title200
 OK: if the resource is exported successfully

Status
subtletrue
colourRed
title404
 Not Found: if the resource does not exist

 

...

 

Status
colourBlue
titlePOST
 fcr:import Import a serialized resource 

...

Status
subtletrue
colourGreen
title201
 Created: if the resource is imported successfully

Status
subtletrue
colourRed
title404
 Path not found Not Found: if the path does not exist

Status
subtletrue
colourRed
title409
Conflict: if a node with the same UUID exists