Export all storage files as tar.gz
GET/api/infra/storage/export
Export all storage files as tar.gz
Request
Responses
- 200
- 401
- 403
- 409
- 503
JSON pointing at the archive that was written under data/exports/. This route does NOT stream the tar.gz, and no route serves it: download is a server-side path to pass as filePath to POST /api/infra/storage/import.
The API key is missing, unknown, revoked, or expired
The API key's role, session or chat scope, or IP allow-list does not allow this operation
The local storage directory cannot be enumerated completely, so the answer would silently leave files out: it holds a symbolic link, a directory the app cannot read, or one nested too deep. message names the path relative to the storage root and the cause. Replace a link with a bind mount or fix the permissions, then retry; nothing was written.
STORAGE_TYPE is s3 but the bucket is unreachable or its credentials are missing; nothing was read or written.