Export your catalog
This guide copies the original files behind the items a type, a search, and the catalog’s filters
pick out into a storage resource,
where any tool that reads that storage can read them. You need xixo:catalog:write, and at least
one s3, filesystem, or webdav resource. See attaching a resource.
What an export writes
Section titled “What an export writes”- Each file is written at
<source resource key>/<path in the source>. A file from the resourcephotosat2024/beach.jpglands atphotos/2024/beach.jpg. - In an
s3resource, that path starts at the bucket’s root. The resource’s Prefix does not apply. - A
filesystemdestination must be a folder its machine shares writable, on a machine whose plan keeps files. - Only the original files are copied. Previews, analyses, titles, tags, and connections stay in xixo.
- Each copy is added to its item as another place the file lives.
- An item with no original, or whose only original is already on the destination, is skipped.
- Exporting again to the same destination skips every copy whose original has not changed. A changed original is written over its copy.
Export from the app
Section titled “Export from the app”- Open the catalog. To export part of it, pick a type, type a search, or set filters first. The dialog starts with the type and search filled in, and says which filters it keeps.
- Open the More menu and choose Export these…. On a view’s page, the export takes what the view lists.
- Under Write them to, pick a storage resource. Left empty, the export goes to the tenant’s default storage. With no default, Export stays disabled until you pick one.
- Change Of type and Matching if you want. Matching takes the same search you would type in the bar.
- Choose Export.
The export goes on in the background as a run. To follow it, open the destination’s More menu on Resources and choose What it has done.
Export over GraphQL
Section titled “Export over GraphQL”exportFeeds takes an optional destinationId, query, type, resourceId, and slice.
resourceId limits the export to items with a file on that resource, and slice narrows it the way
the catalog’s filters do: a machine or a folder, how far analysis got, a kind of file, and when it
was added. It needs xixo:catalog:write.
mutation { exportFeeds(input: { destinationId: "12", type: "xixo:file", query: "invoices 2025" }) { run { id status } }}Query run with the run’s id until status is done or failed, and call cancelRun to stop it.
See the GraphQL reference.
Export over MCP
Section titled “Export over MCP”-
Call the
resourcetool with no arguments to list resources. Pick one whosecapabilitiesincludestorage. -
Call it with that resource’s key and
do: "export":{"key": "archive","do": "export","input": { "type": "xixo:file", "query": "invoices 2025" }}inputalso takesmachine_id,analysis, andkind, which narrow the export the way thesearchtool’s arguments of the same names narrow a search. -
Follow the run with
do: "runs"on the same key.
The token needs xixo:resources:read and xixo:resources:command. do: "cancel" with
input: { "id": "<run id>" } stops the run. See the MCP reference for every
input key.
Each person can start XIXO_RUN_BUDGET runs an hour through MCP in each tenant (20 by default).
Syncs, exports, moves, and analyses share the budget.
Read the files
Section titled “Read the files”- For
s3, list or copy the bucket with the provider’s tools, such asaws s3 sync s3://archive ./archive --endpoint-url https://s3.example.com. - For
filesystem, copy the folder from its machine. On xixo link beside the server in the example Compose project, the default storage is/data/files/xixo/in thefilesvolume. - For
webdav, use any WebDAV client.
Move the files to another xixo
Section titled “Move the files to another xixo”- Export to an
s3orwebdavresource that the other xixo can reach. - In the other xixo, attach the same bucket or share as a resource.
- Sync it. See adding.
The other xixo analyzes the files again. Titles, tags, and connections do not travel with them.
To move files between two machines running xixo link, and remove each original once its copy checks out, see move files between machines.
If it doesn’t work
Section titled “If it doesn’t work”- “this tenant has no default storage resource”: pick a destination, or choose Take drops in a storage resource’s More menu on Resources to make it the default.
- “
<key>is not storage”: pick ans3,filesystem, orwebdavresource. - The run ends
gated: anexportgate is closed for the tenant, orXIXO_ITERATORS_DISABLEDis set on the server. - The run ends
failed: the destination refused a write. xixo tries five times before it fails the run, and the error is on the run. Choose Check on the destination in Resources. - The run stays
queued: no worker is running. See self-hosting. - “this token has started N runs in the last hour”: the MCP run budget is spent. It resets at
the start of each clock hour. An operator can raise
XIXO_RUN_BUDGET, and0removes the limit.