Backing up and restoring LabTrove

From LabTrove Documentation
Jump to: navigation, search

How LabTrove stores data items

Version 2.2 of LabTrove stores data items as binary large objects in the MySQL database, subject to a threshold that is configurable by the system administrator. Above the threshold, LabTrove stores large data items in the file system. Storing all but very large files in the database has the advantage that a backup of the database contains all the data in the Trove; restoring that backup with a fresh copy of the code rebuilds the entire Trove.

To view the threshold setting for your Trove, navigate to the lib directory and open default_config.php. The threshold size above which LabTrove stores large data items in the file system is set in the following line:

$ct_config['uploads_max_size'] = 1024 * 1024 * 1024 ; // 1Gb

For data items stored in the database, use the standard backup and restore procedures, such as those provided by MySQL.

For data items stored in the local filesystem, use the backup and restore procedures provided by your institution.

Personal tools