Build MongoDB backends with consistent code.
Recent revisions are kept. Restoring one creates a new revision.