we are currently preparing a system migration and trying to clean up our existing XWiki (v10.10) content before moving to a new platform.
Over the years, many attachments (especially images) have been left orphaned because they were deleted in the editor but never removed from the page’s attachments. Our goal is to:
Export a complete page/module (with all its children)
Include only valid (linked) attachments
Exclude unused/orphaned files
Get this as a clean .xar file that can be reimported
We’ve tried multiple approaches:
Manual .xar export via UI → doesn’t seem to include attachments (at least in v10.10)
REST API access → works partially, but doesn’t return child pages reliably or lists empty <pages/>
Script-based HTML crawling + attachment download → possible, but not ideal for clean reimport
Main question: Is there a reliable way (via UI, script, extension, or newer version) to export a .xar file that includes all children + their used attachments, without pulling in orphaned files? OR orphaned Files aside, is there a way to export with attachments in older version like ours in the first place?
Any advice from the community would be highly appreciated – especially if there’s an extension or export method we’ve missed.
Just to be clear. The Old Version runs on V10.10. Thats a very old version. Sure exporting attachments was included in that area? Were talking min 5 years ago.
Ah…we’re onto sth here…that looks drastically different then what i am using. So pls explain to me bcuz i’m dumb. Is that an extra admin extension which i can download or should that be included in the standard 10.10?
yes that’s the Admin UI export. If you use that, it’s sure you’ll get the attachments in the XAR since that feature exists since the beginning of XWiki.