Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Request URI: /

Methods: GET, POST

 

POST fcr:backup Initiate a (consistent) backup of the repository. 

The backup will be stored in a temporary directory on the server. As yet, there is not a REST API method for retrieving the content of the backup.

 

Example:

curl -X POST "http://localhost:8080/rest/fcr:backup"

 

Response:

Status: 200 OK

Body:
/tmp/fcrepo4-data/path/to/backup/directory

 

Status:

200 OK

 


   

POST fcr:restore Replace repository content with data from a backup directory

 

Example:  

curl -X POST --data-binary "@backup.txt" "http://localhost:8080/rest/fcr:restore"
 
Body:
/tmp/fcrepo4-data/path/to/backup/directory

 

Response:

Status: 204 No Content

 

Status:

204 Backup restored

500 Error restoring backup

  • No labels