Versions Compared

Key

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

...

Status
colourBlue
titlePOST
 fcr:restore Restore a backup file into the  repository

...

Replace repository content with data from a backup directory

 

Example:  

Code Block
curl -X POST -d "@backup.xmltxt" "http://localhost:8080/rest/fcr:restore"
 
Body:
<binary content>/tmp/fcrepo4-data/path/to/backup/directory

 

Response:

Code Block
Status: 204 No Content

...

Status
subtletrue
colourGreen
title204
 
Backup restored

Status
subtletrue
colourRed
title500
Error restoring backup

Identifiers 

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

...