Skip to content

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.

  • Each file is written at <source resource key>/<path in the source>. A file from the resource photos at 2024/beach.jpg lands at photos/2024/beach.jpg.
  • In an s3 resource, that path starts at the bucket’s root. The resource’s Prefix does not apply.
  • A filesystem destination 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.
  1. 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.
  2. Open the More menu and choose Export these…. On a view’s page, the export takes what the view lists.
  3. 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.
  4. Change Of type and Matching if you want. Matching takes the same search you would type in the bar.
  5. 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.

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.

  1. Call the resource tool with no arguments to list resources. Pick one whose capabilities include storage.

  2. Call it with that resource’s key and do: "export":

    {
    "key": "archive",
    "do": "export",
    "input": { "type": "xixo:file", "query": "invoices 2025" }
    }

    input also takes machine_id, analysis, and kind, which narrow the export the way the search tool’s arguments of the same names narrow a search.

  3. 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.

  • For s3, list or copy the bucket with the provider’s tools, such as aws 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 the files volume.
  • For webdav, use any WebDAV client.
  1. Export to an s3 or webdav resource that the other xixo can reach.
  2. In the other xixo, attach the same bucket or share as a resource.
  3. 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.

  • “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 an s3, filesystem, or webdav resource.
  • The run ends gated: an export gate is closed for the tenant, or XIXO_ITERATORS_DISABLED is 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, and 0 removes the limit.