Migrate from BookStack to xWiki: Enterprise Upgrade
BookStack has earned its place as a popular open-source documentation platform, prized for its intuitive interface and straightforward organizational model. For small teams managing internal documentation, BookStack delivers a pleasant experience. However, as organizations grow and their knowledge management requirements deepen, the limitations of BookStack compared to enterprise platforms like xWiki become increasingly apparent. When your documentation needs outgrow BookStack's capabilities, xWiki offers a natural upgrade path with dramatically expanded functionality.
When BookStack Outgrows Your Needs
The inflection point typically arrives when teams need more than a documentation repository. BookStack's Shelves, Books, Chapters, and Pages hierarchy is elegant for straightforward documentation but becomes constraining when you need structured data applications, workflow automation, or fine-grained permission models that go beyond its role-based system. Organizations that want to build custom applications on top of their wiki, integrate deeply with enterprise systems, or support complex multi-department permission structures find that BookStack's simplicity, once an asset, becomes a ceiling.
xWiki addresses each of these limitations with its extensible architecture, Application Within Minutes framework, Groovy and Velocity scripting support, and a permission model that provides granular control at every level of the content hierarchy. The migration from BookStack to xWiki is not merely a platform swap; it is an upgrade to an enterprise-class knowledge management system.
Mapping BookStack's Hierarchy to xWiki Spaces
BookStack organizes content into a four-level hierarchy: Shelves contain Books, Books contain Chapters, and Chapters contain Pages. xWiki uses a flexible nested space model that can accommodate any depth of hierarchy. The most natural mapping converts BookStack Shelves to top-level xWiki spaces, Books to second-level nested spaces, Chapters to third-level spaces, and BookStack Pages to xWiki pages within those spaces. This preserves your organizational structure while gaining the ability to nest content even deeper when needed.
Before beginning the migration, export your complete BookStack hierarchy as a reference document. Record the Shelf, Book, Chapter, and Page structure along with each item's slug, which you will use to construct xWiki page references and ensure internal links resolve correctly after migration.
Database Export Approach
BookStack stores all content in a MySQL or MariaDB database, making it accessible for direct export. The pages table contains your content in either Markdown or HTML format depending on the editor used, while the books, chapters, and bookshelves tables define your organizational structure. A SQL export of these tables provides the raw material for migration. Write a script that queries the database, extracts each page's content along with its position in the hierarchy, and outputs files organized in a directory structure that mirrors your intended xWiki space layout.
Alternatively, BookStack's REST API provides a clean programmatic interface for exporting content. The API returns page content in both HTML and Markdown formats and includes metadata such as creation dates, modification dates, and author information. For smaller BookStack instances with fewer than a thousand pages, the API approach is straightforward and avoids the need to work directly with the database.
Content Conversion from Markdown and HTML
BookStack supports both a Markdown editor and a WYSIWYG editor that produces HTML. If your team primarily used the Markdown editor, you benefit from a cleaner conversion path since Markdown translates well to xWiki syntax with established conversion tools. HTML content from the WYSIWYG editor requires more cleanup, as BookStack's editor generates HTML with specific class names and structures that should be stripped or transformed during conversion.
In both cases, pay careful attention to internal links between pages. BookStack uses URL slugs for page linking, and these must be systematically remapped to xWiki page references using the hierarchy mapping you established earlier. Images and file attachments stored in BookStack's storage directory need to be exported and attached to the corresponding xWiki pages.
Permission Model Differences
BookStack uses a role-based permission system with four default roles: Admin, Editor, Viewer, and a configurable set of custom roles. Permissions can be assigned at the Shelf, Book, Chapter, and Page level, but the model is relatively flat compared to xWiki's capabilities. The following table outlines the key permission differences to plan around during migration.
| Permission Aspect | BookStack | xWiki |
|---|---|---|
| Model Type | Role-based with per-item overrides | Hierarchical with inheritance and group-based rules |
| Granularity | Shelf, Book, Chapter, Page | Wiki, Space (any depth), Page |
| Rights Types | View, Create, Edit, Delete | View, Edit, Delete, Comment, Admin, Script, plus custom |
| Inheritance | Limited (per-item overrides) | Full hierarchical inheritance with deny/allow rules |
| Enterprise Auth | LDAP, SAML (basic) | LDAP, SAML, OIDC, Active Directory (advanced) |
Feature Gap Analysis
Moving from BookStack to xWiki opens up capabilities that simply do not exist in BookStack. Structured data applications allow you to build custom databases and forms directly within the wiki. Scripting support with Groovy and Velocity enables workflow automation, dynamic content generation, and integration with external systems. The extension ecosystem provides over 700 add-ons covering everything from diagram editors to project management tools. Multi-wiki support lets you run isolated wiki instances from a single xWiki installation, which is particularly valuable for organizations managing documentation across multiple business units or client engagements.
These capabilities mean that xWiki can consolidate multiple tools into a single platform, reducing the number of systems your team needs to maintain and your users need to learn.
When your documentation platform needs to grow beyond BookStack's capabilities, MassiveGRID provides managed xWiki hosting on infrastructure designed for enterprise knowledge management workloads. Our team can help you plan and execute a migration that preserves your content while unlocking xWiki's full potential. Get in touch with our specialists to start your upgrade.
Published by MassiveGRID — Managed xWiki hosting on high-availability cloud infrastructure with 24/7 expert support.