Replicating content between XWiki instances

The XWiki Replication Application copies content between XWiki instances, for example from an internal wiki to a partner or public instance. This page covers when that fits, how to set it up, and the limits to confirm first.

On this page

When replicating XWiki content between instances is the right answer

Replicating XWiki content makes sense when you keep an internal wiki and need selected pages to appear in a partner, public or regional instance that must stay separate from it. The xwiki-contrib Replication Application provides tools to copy data between XWiki instances. It supports XWiki 13.17 and later and is licensed under LGPL 2.1, so it is a fit when the source and target sides must each run their own installation, their own users and their own permission model. If the readers of the copied pages can live on the internal instance, a shared space or a single instance with restricted spaces is usually simpler to run and audit.

Replication is the right answer when the boundary between the two instances is a deliberate control, not an inconvenience. Examples include a partner portal that must not see internal user accounts, a public product documentation site that is hosted in a different network zone, or a regional instance that has to hold its own copy of procedures for local data residency reasons. In each case, the decision to replicate should be recorded with the owner of the boundary, because it determines which accounts, groups and rights stay local and which pages cross over. Ask the platform team to confirm where the target instance is hosted and who administers it before you choose this path.

Compare replication with the two common alternatives. An extranet, built as a separate space with guest or external accounts on the internal instance, avoids a second copy of content but keeps the partner inside your identity and administration boundary. A manual export, such as a packaged set of exported pages or a file handed over on a schedule, has no sync logic and no record of what changed, so it works best for one-off transfers. Replication fits recurring publication from one source to one or more targets. Before committing, confirm with the Replication Application documentation which content types it covers, how it handles conflicts when the target is edited, and whether your XWiki version is inside the supported range.

Scenarios that call for replication

Replication copies pages from one XWiki instance to another, so the content a source team already maintains can reach a second audience or location. Each scenario below differs in what moves, who reads the copy, and what must be kept out, so plan the filter for each one before the first copy runs.

Internal to partner instance

Selected procedures, status pages or product notes move from the internal wiki to a partner-facing instance. The partner team reads the copy, not the source, so internal comments, staff-only spaces, customer data and unpublished drafts must stay out. Confirm which spaces, attachments and user references the filter will carry, and whether the partner instance will show page authors who are internal staff.

Public product documentation

Versioned product manuals or release notes are maintained in one instance and published from another that is reachable by customers. Only pages marked as approved should cross, so set a clear publication space or tag before replication. Check that internal links, macros that call internal services and draft versions do not appear in the public copy, and that the public instance has its own access and search configuration.

Regional copies

A team in another region needs read access to the same procedures without querying a distant instance. The regional copy receives content on a schedule, so local staff see a delayed view. Decide which pages are authoritative, who may edit the regional copy, and whether local edits are overwritten on the next run. Data residency rules may limit which content can leave a region at all.

Disaster recovery copies

A standby instance holds a copy of key content so the team can read procedures when the primary is unavailable. A replication copy is not a backup: it does not replace database dumps, attachment backups or tested restore procedures for the primary. Confirm how deletions propagate, how the standby is kept from becoming an editing target, and how often a restore drill is run against the copy.

Compliance and records retention

Some records must be kept in a fixed state at a second location for a retention period. A copy of approved records is useful only if the copy stays read-only and its history is traceable to the source. Ask the compliance owner which record classes qualify, whether page history and attachment history must be preserved, and how access to the retained copy is logged and reviewed.

Replication options compared by architecture

In a push pattern, the source instance initiates replication and sends selected pages to a target instance. The source team usually controls when copies happen and what is selected, while the target team receives content it does not request. This suits cases where an internal wiki publishes approved material outward, such as a set of product guides for a partner portal. Edits made on the target generally do not flow back, so the target should be treated as a read copy unless you design a separate process for returning changes.

  • Control of the target: The receiving team must accept inbound replication and keep the target reachable from the source network or through a gateway you approve.
  • Edit return: Changes on the target are overwritten by later pushes, so local edits can be lost if nobody owns that risk.
  • Permissions: Page rights on the source do not automatically match the target, so confirm how groups and access rules are mapped before go-live.
  • Attachments: Confirm whether attachments are carried with pages in your version and whether their history is kept.
  • Failure handling: Plan how a failed push is detected, retried and reported to the owners of both instances.

Before committing to this pattern, confirm with the vendor which Replication Application version you run and what it supports for permissions and attachments.

How to set up replication between two XWiki instances

This sequence takes you from a version check to a verified production copy of selected pages between a source and a target XWiki instance. Each step ends with a check, so problems surface on a non-production target before any live content moves.

  1. Confirm version compatibility on both instances

    Check the XWiki version running on the source and on the target. The Replication Application supports XWiki 13.17 and later, so both sides must be at or above that version. Your XWiki administrator confirms this from the administration pages of each instance, and the platform team records both versions in the change ticket. Confirm too that the two instances can reach each other over the network path you plan to use, and that the application's own release notes match the XWiki version you run. Done when both version numbers are written down and each one is at or above 13.17.

  2. Install the extension on source and target

    Install the Replication Application from the xwiki-contrib project on both the source and the target instance, using the method your deployment uses, such as the extension manager or a packaged build. Install it through your change process on the non-production target first, then on the source. Restart or reload the instance if your installation requires it. Done when the application appears in the administration interface of both instances and each one starts without errors in its logs.

  3. Create a dedicated replication account

    Create a separate user on each instance for replication work, rather than reusing an administrator or a personal account. Grant it only the rights the copy needs: view rights on the source pages in scope and the edit or create rights required on the target space. Avoid global administrator rights. Record who owns the account, where its credentials are stored, and how they are rotated. Done when a test login with the account shows access to the intended spaces and is denied elsewhere, which you confirm by trying one page outside the scope.

  4. Define the page scope and exclusions

    Write down which spaces, page trees and attachments will be copied, and which will never leave the source. Include the content owner who approves each space, and note pages that contain personal data, restricted material or internal-only links that will break on another instance. Decide whether the target receives a snapshot or ongoing updates, and whether deletions on the source should propagate. Done when the scope is a signed-off list that names every space in scope and every exclusion, and the list is attached to the change record.

  5. Run a test copy on a non-production target

    Configure the replication job for the agreed scope and run it against a non-production target, not the live public or partner instance. Use a target that mirrors the production configuration as closely as you can, including the same extensions and the same macros the pages depend on. Keep the run log, the count of pages and attachments transferred, and any errors reported by the application. Done when the job finishes and the log shows which pages were copied, with errors either resolved or documented as accepted exceptions.

  6. Verify rendering, attachments and permissions

    Check the test copy against the source. Open a sample of pages from each space in scope and compare rendering, including macros, images, links, tables and any scripts or extensions the content uses. Download a sample of attachments and compare file names, sizes and checksums where practical. Log in as users with different rights and confirm they see the same access as on the source, and that restricted pages stay restricted. Record any gap as a defect. Done when a reviewer signs off a written checklist covering rendering, attachments and permissions, with each defect either fixed or accepted by the content owner.

  7. Schedule or trigger the production copy

    Once the test copy passes, repeat the same job against the production target during an agreed window, using the same scope, account and configuration. Trigger it manually for a one-time copy, or schedule it if the target must stay updated, and confirm the schedule with the content owner. Run the verification checklist again on a sample of production pages after the job completes, and keep the logs with the change record. Done when the production copy finishes without unresolved errors, the spot checks match the test results, and the schedule or manual procedure is documented for the operations team.

Copied pages pass a review point before they reach the target wiki

The diagram starts on the source instance, where the Replication Application selects the pages to copy. Content then crosses the network path between the two sites, which is the trust boundary you need to design and secure. On the target instance, copied content lands on the target side and waits at a review point before anyone can see it on the live wiki. Check three things: what the source is allowed to send, how the connection is authenticated and encrypted, and who approves content before it is published. Confirm each of these against the Replication Application documentation for your XWiki version.

Content flows from source pages through a review point on the target.

What replication does not copy and where it breaks

Treat replication as a copy of page content and nothing more until you have verified otherwise. The Replication Application is built to move data between XWiki instances, but the boundaries of what it carries are the first thing to confirm in its documentation and in your own test environment. Start with user accounts and group membership. Pages that reference a user or group may arrive on the target instance without the identities behind them, so authors, approvers and rights holders on the destination can differ from the source. Decide before the first run whether the target will use its own directory, a shared identity provider or local accounts, and confirm how the extension maps references to those identities.

Permissions need the same scrutiny. Page rights are expressed through groups, spaces and the target instance's own rights model, so a page that was restricted on the source can become visible to a wider audience on a public or partner instance if the groups do not exist there or resolve to something broader. Build a permissions map that lists each replicated space, its source rights and the intended target rights, and test with accounts from each audience. Attachments and page history also need explicit checks: confirm whether attachments, attachment versions and revision history travel with the page, because a replicated copy may show only the latest content and lose the audit trail your records duties depend on.

Macros, applications and extensions that exist on only one side are a frequent break point. A page that renders correctly on the source can show errors or raw syntax on a target that lacks the same extension, so inventory the applications and macros used in replicated spaces before you choose a target. Version drift compounds this. Compare the XWiki version, the installed extension versions and the Replication Application's supported range on each instance, since the extension documents its supported XWiki versions and differences in core versions can change how content is stored or rendered. Confirm these points against the extension's documentation and your environment, and record the results in a test plan that you rerun after each upgrade on either side.

Security and operational risks to plan for

Replication moves content out of the environment where its permissions were designed to hold. The cards below cover the risks that follow from that move, and the control to put in place for each before the first copy runs.

Exposing internal content to the target

A replication job sends whatever its source account can read, so an internal wiki with broad read rights can push drafts, HR material or customer data to a public or partner instance. Before enabling anything, list the spaces and pages that the job is allowed to send, and confirm that the target is the audience you intend. Treat the selection of content as a reviewed decision, not a default.

Minimum XWiki version
13.17
Replication Application

Credentials for the replication account

The replication job authenticates to the target with an account that can write content there, so a leaked password gives an attacker write access to a second site. Use a dedicated account on each side with the smallest rights that the job needs, store its secret outside wiki pages, and rotate it on a schedule you can document. Confirm which authentication method the Replication Application supports in your version before you design around it.

Transport encryption between sites

Content in transit between regions or networks crosses links that your internal controls may not cover. Require HTTPS on both instances, reject plain HTTP targets in the job configuration, and check that certificates are valid and pinned to the expected host. Ask your network team to confirm the path between sites, including any proxies or load balancers that terminate TLS.

Leaking restricted pages through copied permissions

Copied pages can carry rights that make sense on the source but expose content on the target, or the reverse, where a restricted page loses its protection on arrival. Compare the rights model of both instances before the first run, and decide whether the target should receive rights at all. Test with a restricted page marked as a canary and confirm that an anonymous or unrelated user cannot read it on the target.

Audit trail of what was copied

Without a record of each run, you cannot later answer which pages left the source, when, and under which account. Keep job logs, the list of pages in each run, and the target account used, and forward them to the log system you already operate. Check that the target's own audit or version history records the incoming changes, since a copy that appears as an anonymous edit is hard to trace.

Rollback after a bad copy

A bad run can overwrite good content or publish something that should never have left the source. Plan the rollback before the first production run: take a backup of the target database and attachments, test restoring it, and define who may approve a revert. Confirm with the target's version history how a copied page is reverted, because replicated pages may not behave like local edits.

Questions teams ask before replicating XWiki content

Can our team replicate XWiki content without outside help?

Yes, if you have engineers who can run XWiki and read the Replication Application's documentation, and enough time to test. The Replication Application is an xwiki-contrib project licensed LGPL 2.1 that supports XWiki 13.17 and later, so it is open source and you can deploy it yourself. The harder part is rarely the install. It is deciding which spaces move, how user rights map between instances, and how you prove the copies match. Teams that have run XWiki upgrades and permission reviews before usually manage a small pilot alone. Outside help becomes more useful when several instances, regulated content or partner access are involved.

What drives the effort and cost of replicating content?

Effort grows with the number of moving parts, not with page count alone. The main drivers are: the scope of content and attachments to replicate, the number of source and target instances, how permissions and groups must map between them, how much testing and sign-off you need, and whether all instances run the same XWiki version. Mismatched versions add upgrade work before replication can start. Costs are one-time for design and build, and they recur if replication runs on a schedule that someone must watch. Ask any provider for a quote that lists each of these drivers separately, so you can see which ones you can reduce.

How does permission mapping affect replication?

Permission mapping is usually the item that changes the plan most. Replication copies content, but users, groups and rights on the target instance are managed there, so a page visible only to an internal group may be exposed or hidden after it moves. Before you start, list which groups exist on each side, which spaces are public, and which pages must never leave the internal instance. Confirm with the Replication Application documentation how it handles rights on the target, then test with real accounts. Document the mapping rules so the next change follows the same logic.

What do we need to provide for a replication project?

Plan to provide a non-production test instance on the same XWiki version as the source, written sign-off on scope from the content owners, and network access between the source and target instances that your security team approves. You will also need named administrators on each side, a list of spaces and page types in scope, and a decision on who owns the target after go-live. Ask for a written list of these inputs in any scope document, so gaps appear before testing starts rather than during a cutover.

How long does replication take?

Duration depends on scope, and no fixed figure applies to every wiki. A single space copied once to a test target is a short exercise. A multi-instance design with permission mapping, repeated test runs and a regular schedule takes longer, mainly because testing and sign-off take more time than the copy itself. Ask for a timeline that breaks down design, test runs, sign-off and go-live, and note which steps depend on your approvals. Your own calendar for reviews is often the longest item.

Does replication replace a shared extranet for partners?

Not always. Replication copies content from one instance to another, so partners see a separate copy that must be refreshed. That suits published documentation or regional copies, where read-only content is enough. It does not suit partners who must edit shared pages in real time, or where one copy must be the only source of truth. In those cases, a partner extranet that uses access rules on a single instance may be simpler to govern. Compare both options against who edits, how fresh the content must be, and how you will remove access when a partner leaves.

Does XWiki SAS offer help with this, and at what rates?

XWiki SAS offers consulting, training and support, and its published pricing lists consulting at 1200 EUR per day, which requires a Business or Enterprise support plan, and training at 1500 EUR per day, according to the XWiki pricing page. Those rates cover the vendor's own services and do not replace a fixed-scope quote from any implementation partner. DeployOpen plans, implements and tests self-hosted open-source platforms in your infrastructure and provides fixed-scope quotes from a written scope. Ask for a written scope and compare it with the vendor's rates before you choose.

How DeployOpen works on this

DeployOpen plans and builds content replication between XWiki instances inside infrastructure you control, from the source and target environments to the access model and the page scope. We agree the scope in writing before work starts, then test, document and hand over the replication setup so your own team can run it.

How we scope

  • Written scope lists the source and target instances, their XWiki versions and the spaces or pages to replicate.
  • We record the direction of replication, whether it is one way or two way, and which content must never leave the internal instance.
  • The scope names who approves each replication target, and states who owns the accounts and permissions used on each side.
  • Engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts.

How we build

  • We confirm the Replication Application version against your XWiki release before installing it on either instance.
  • Build covers the replication configuration, the sync schedule, and the handling of attachments, comments and page history.
  • We test a representative set of pages end to end, including permissions, links, images and content that did not replicate.
  • Each replication run is checked against the source so that drift, duplicates and missing pages are caught early.

How we hand over

  • Handover includes a runbook covering how replication is started, stopped, monitored and rolled back.
  • Documentation records the limits we found in your setup, such as content types that do not replicate cleanly.
  • We walk your administrators through the target instance, the accounts used for sync and the logs to review after each run.
  • Deliverables are listed in the written scope so you can check them against what was agreed.

How we support

  • Ongoing support, XWiki upgrades and continuous testing are available as retainers after handover.
  • A retainer can cover re-testing replication after each XWiki upgrade on either the source or target instance.
  • Support requests for changed scope, new spaces or new target instances are quoted from a revised written scope.
  • Ask for the retainer terms, response expectations and included testing in writing before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.