> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Object storage archive

> Import files from ZIP or tar.gz archives in an S3-compatible bucket.

Sources

stable

v1.1.0

Needs S3-compatible storage and credentials

[View plugin source](https://github.com/The-Vibe-Company/quivr/tree/main/plugins/object-storage-archive) · Plugin ID `connector.object_storage_archive` · Plugin API `>=0.19.0 <0.20.0`

The archive plugin extracts files from archives so Quivr can read and index them.

![The archive plugin brings individual files from bucket archives into Quivr to be read and indexed.](https://mintcdn.com/thevibecompany/R_BoVln_OJmoIk9D/images/diagrams/plugin-object-storage-archive.png?fit=max\&auto=format\&n=R_BoVln_OJmoIk9D\&q=85\&s=86297e6f0b8354782ed68a26639ed5ae)

## What it does

Import files from ZIP or tar.gz archives in an S3-compatible bucket. Quivr collects the files inside each archive so they can be processed individually.

## Before you start

* Put finished archives under one bucket prefix (the start of an object key, such as `inbox/`). The plugin imports in lexicographic order by object key. Pad numbers with leading zeros, such as `archive-0002.zip` and `archive-0010.zip`, so numerical order matches key order.
* Have credentials with permission to list the prefix and read the objects. Supply `access_key_id` and `secret_access_key` as instance credentials, plus `session_token` for temporary credentials. The plugin does not read ambient AWS credentials.
* Choose a collection (a Corpus in the API) and make sure Quivr can read the files inside the archives. Use an API key with `connectors:read`, `connectors:write`, `content:read` and `search:query` for the collection.
* Set `credential_key` in your Quivr deployment so it can store the storage credential.

## Enable it

**1. Find the archive source**

Look for `object_storage_archive` in `GET /v0/connector-kinds`. If it is missing, [pin the plugin](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md#pin-a-plugin).

**2. Create an instance**

Follow [Import an archive](https://docs.quivr.thevibecompany.co/guides/connect-a-source.md#configure-and-start-the-source). Set the bucket, prefix, region and media type of the files inside the archive. Include the storage credential in `credential.secret` in the same request.

## Use it

### Import only the files you need

For ZIP archives containing XML files, set `archive_patterns` to `["**/*.zip"]`, `member_pattern` to `"**/*.xml"` and `media_type` to `"application/xml"`. The first pattern matches bucket keys. The second matches paths inside each archive. Set a media type supported by the plugin that will read your files.

If the same document appears in more than one archive, follow [Choose the member identity](https://docs.quivr.thevibecompany.co/guides/connect-a-source.md#choose-the-member-identity) to give its revisions the same record key and the right order. [Check import progress](https://docs.quivr.thevibecompany.co/guides/connect-a-source.md#read-progress-and-resume) before looking for the files in your collection.

## Settings

## What it produces

For each matching file, the plugin submits the original bytes. Quivr uses the configured media type to decide how to read the file.

## Limits and troubleshooting

| Symptom | What to check |
| - | - |
| An archive is missing from the import | Check the prefix and patterns. New keys must sort after the latest archive key the instance has saved, including an archive in progress. |
| `archive_changed` or `archive_missing` | Restore the original archive at the same key with its original ETag, the tag supplied by the storage service. |
| `zip_directory_too_large` | Use tar.gz if the ZIP directory exceeds 4 MiB or 100,000 entries. |

Use a separate instance to import a replacement archive or an earlier range. Choose a prefix or pattern that selects only those archives.

## Related plugins

* [Object storage prefix](https://docs.quivr.thevibecompany.co/plugins/object-storage-prefix.md) for files stored individually.
* [NewsML-G2](https://docs.quivr.thevibecompany.co/plugins/newsml-g2.md) to read NewsML-G2 files inside an archive.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.