Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Migrating Tinderbox Data

crockpotveggies edited this page Feb 14, 2015 · 1 revision

If you need to migrate Tinderbox to a new fork or are re-downloading your repo and want to save your facial models, follow these steps to prevent data loss.

Caveats

Note: data migration isn't possible in all cases. This is because data is stored using MapDB, a simple disk-persisted key/value database that is integrated with Tinderbox.

Data migration will not after an upgrade when java classes or models have been removed from the repository and are no longer available in the classpath. For example, if you pull a new change for Tinderbox where a commit removes a file such as FacialModelData.scala that is stored within MapDB, then the application will fail to start after upgrade. The only fix is to delete data models and start from scratch. This is because MapDB attempts to find the class via the Java Class Loader, and throws a fatal error when it can no longer find the class.

To see a similar problem where this applies, check out this issue: https://github.com/crockpotveggies/tinderbox/issues/23

Migrating Data

To move your accumulated data, copy the contents of the data folder and place a safe copy that is located elsewhere on your computer. If you are re-downloading the Tinderbox repository, you can then re-paste the data folder back in the same location (which is the root of the repository). Note the caveats above, where this will not always work.

screen shot 2015-02-13 at 3 58 27 pm

Copying the data folder to safe location can also be used for backing up models, if you wish to do so.

Clone this wiki locally