journal-compress and journal-decompress
The journal-compress
and journal-decompress
utilities can be used to archive Ember Journal under Ember while it is running. Since Ember journal uses memory-mapped files, compressing or copying Ember Journal while Ember is running will likely result in an inconsistent copy of the Journal. In this scenario, you can use the journal-compress
tool to create an $EMBER_WORK/journal.archive
file that contains the compressed version of the journal. To decompress the archived journal back into the normal set of journal files, you can use the journal-decompress
tool.
Using these tools, you can safely archive Ember Journal without disrupting the running Ember server and later decompress it when needed. This is particularly useful for backup purposes or when you need to free up disk space without losing any important Journal data.