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 |
---|
subtle | true |
---|
colour | Green |
---|
title | 200 |
---|
|
OK
: if the resource is exported successfully Status |
---|
subtle | true |
---|
colour | Red |
---|
title | 404 |
---|
|
Not Found
: if the resource does not exist
...
fcr:import Import a serialized resource
...
Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 201 |
---|
|
Created
: if the resource is imported successfully Status |
---|
subtle | true |
---|
colour | Red |
---|
title | 404 |
---|
|
Path not found Not Found: if the path does not exist Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 409 |
---|
|
Conflict: if a node with the same UUID exists