Versions Compared

Key

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

Table of Contents
maxLevel3

Overview

Excerpt
The Fedora 4 Backup

F4 alpha 2

...

capability allows a user, such as the repository manager, make a REST call to have the repository binaries and metadata exported to the local file system. Inversely, the Restore capability allows a user to make a REST call to have the repository restored from the contents of a previous Backup operation.

Further description can be found in ModeShape's documentation.

Usage

Backup

Warning

If a POST body specifying a writeable directory (local to Fedora 4 server) is not included in the request, the backup will be written to the system temp directory.

Perform a backup of a running Fedora4 respositoryFedora 4 repository

Request
Panel

POST /rest/fcr:backup

> optional POST body

...

Response

On success

  • HTTP/1.1 200 OK
  • Path where the backup was written

Response body

  • Absolute path of local backup directory

Restore

Warning

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

Perform a restore of a running Fedora 4 repository

Request
Panel

POST /rest/fcr:restore

> with POST body

A POST body containing the full path to a previous backup.

Response

On success

  • HTTP/1.1 204 No Content

Configurations

The following configurations have been successfully tested with the Backup and Restore functionality

  • Non-clustered Fedora, using Infinispan cache backed by the file system (config)Non-clustered Fedora, using Infinispan cache backed by LevelDB (config)
  • Non-clustered Fedora, using ModeShape file system store (config)

Backup Format

Regardless of the repository configuration, the output of the backup process creates resources of the same format. Further details on backup contents and the underlying implementation can be found in ModeShape's documentation.

The backup directory will contain

...