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

# Export a backup

> Export a Pinecone index backup or selected namespaces as Parquet files to your Amazon S3 or Google Cloud Storage bucket for reimport or revisions.

> [!NOTE]
>
> This feature is available on [Standard and Enterprise plans](https://www.pinecone.io/pricing/).

Exporting namespaces from a backup is the recommended way to rearchitect your use case and perform large-scale data revisions. It's faster and cheaper than using other API calls. To move an index onto the Documents API, [convert it](https://docs.pinecone.io/guides/indexes/convert-an-index.md) instead.

## What you can do

* Export a full backup or selected namespaces to your Amazon S3 or Google Cloud Storage bucket.

  > [!NOTE]
  >
  > Exporting is supported only for indexes hosted on AWS or GCP. Your destination bucket must be on the same cloud provider as the source index. For example, you can export a backup of an index hosted on AWS to Amazon S3, but not to Google Cloud Storage.

* Handle the exported data accordingly (e.g., add metadata fields, split into more namespaces).

* The exported data is already formatted for [import](https://docs.pinecone.io/guides/data/import-data.md). For a seamless import, maintain the existing Parquet schema when handling your data.

## Before you export

Ensure you have a storage integration and a backup of the index you want to export.

### Add a storage integration

Create an integration that allows Pinecone to write exported data to your object storage.

> [!NOTE]
>
> Storage integrations are scoped to the Project level. Be sure your storage integration is created within the Project in which your target index resides.

> [!TIP]
>
> You'll need a [storage integration with read permissions](https://docs.pinecone.io/guides/data/import-data.md#2-add-a-storage-integration) to import your data back into Pinecone. We recommend also creating it at this time.

> [tab] Amazon S3
>
> Follow [Integrate with Amazon S3](https://docs.pinecone.io/guides/storage-integrations/integrate-with-amazon-s3.md) to create an IAM policy, IAM role, and storage integration.
>
> For export, the IAM policy must allow `s3:ListBucket` and `s3:PutObject` on your destination bucket or [subdirectory](https://docs.pinecone.io/guides/storage-integrations/integrate-with-amazon-s3.md#targeting-a-subdirectory-optional). For example:
>
> ```json theme={null}
> {
>   "Version": "2012-10-17",
>   "Statement": [
>     {
>       "Effect": "Allow",
>       "Action": [
>         "s3:ListBucket",
>         "s3:PutObject"
>       ],
>       "Resource": [
>         "arn:aws:s3:::BUCKET_NAME",
>         "arn:aws:s3:::BUCKET_NAME/*"
>       ]
>     }
>   ]
> }
> ```
>
> When creating the IAM role, use a trust policy that allows Pinecone's AWS account to assume the role. For example:
>
> ```json theme={null}
> {
>   "Version": "2012-10-17",
>   "Statement": [
>     {
>       "Effect": "Allow",
>       "Principal": {
>         "AWS": [
>           "arn:aws:iam::713131977538:root"
>         ]
>       },
>       "Action": "sts:AssumeRole",
>       "Condition": {}
>     }
>   ]
> }
> ```

> [tab] Google Cloud Storage
>
> Follow [Integrate with Google Cloud Storage](https://docs.pinecone.io/guides/storage-integrations/integrate-with-google-cloud-storage.md) to create a service account, grant bucket access, and add a storage integration.
>
> When [granting access to the bucket](https://docs.pinecone.io/guides/storage-integrations/integrate-with-google-cloud-storage.md#2-grant-access-to-the-bucket), assign the **Storage Object User** role (instead of Storage Object Viewer) so Pinecone can write exported objects.

### Create a backup

[Create a backup](https://docs.pinecone.io/guides/indexes/back-up-an-index.md#create-a-backup) of the serverless index you want to export.

Then [list the backups for the index](https://docs.pinecone.io/guides/indexes/back-up-an-index.md#list-backups-for-an-index) and copy the `backup_id` of the backup to export.

## Request an export

To start an export, [contact Support](https://app.pinecone.io/organizations/-/settings/support/ticket) and share the following:

* **Destination URI** — The full URI of the location in your bucket where the exported data should be written. The bucket must be on the same cloud provider as the source index. Use one of the following formats:
  * Amazon S3: `s3://BUCKET_NAME/EXPORT_DIR`
  * Google Cloud Storage: `gs://BUCKET_NAME/EXPORT_DIR`
* **Storage integration ID** — The ID of the storage integration you created, as found in the [Pinecone console](https://app.pinecone.io/organizations/-/projects/-/storage).
* **Project ID** — The ID of the project containing the backup to export, as found in the [Pinecone console](https://app.pinecone.io/organizations/-/projects).
* **Backup ID** — The ID of the [backup](#create-a-backup) to export.
* **Namespaces** (optional) — The namespace name(s) to export, as found in the [Pinecone console](https://app.pinecone.io/organizations) or via [list\_namespaces](https://docs.pinecone.io/guides/data/manage-namespaces.md#list-all-namespaces-in-an-index). Only needed if exporting specific namespaces.

Once Pinecone Support receives this information, the export operation will begin and you'll be periodically updated on its status.
