Chapter 7. Backup/Restore data

The Administer EJB has methods to backup and restore manifests. This means that a manifest will be written to a file which can be read back if something brakes down. Uploaded files belonging to a manifest will also be backed up. Several backups can be stored simultanously. All backups will be stored at the location defined in scam.properties using the following structure:

$BACKUP_PATH/[manifest-id]_[date and time]_backup/manifest.[rdf|n3]

Uploaded files is copied to a subdirectory /files. The RDF format (RDF/XML or N-TRIPLE) is defined in scam.properties, which also contains the date format incorporated in the backup directory name. SCAM provides no means to remove backup instances, this has to be performed manually.

The Administer EJB provides two methods for listing backup instances, listBackups(String id) will list all available backups (dates) for a certain manifest and listBackupManifests() will list all manifests that have at least one backup. See the Administer API for further details.