Page tree

Old Release

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

Skip to end of metadata
Go to start of metadata


NOTE: These endpoints - /fcr:backup and /fcr:restore - will be moving to an extension module in a future release of Fedora.



Request URI: /rest/fcr:backup

Methods: POST

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


You may include a backup directory in the body of the POST request. If you do not specify a directory, the backup will be stored in a temporary directory on the server (which will be returned in the response body). 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


Example 2: Including a destination directory

curl -X POST -d /path/to/backup/destination "http://localhost:8080/rest/fcr:backup"

 

Response:

Status: 200 OK

 

 Status:

200 OK

 



Request URI: /rest/fcr:restore

Methods: POST

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


Note: Restoring a backup replaces the repository content with the contents of the backup, so any data in the repository will be lost.


Example:  

curl -X POST -d "/tmp/fcrepo4-data/path/to/backup/directory" "http://localhost:8080/rest/fcr:restore"

 

Response:

Status: 204 No Content

 

Status:

204 Backup restored

500 Error restoring backup




  • No labels