---
title: Export the database to Bacpac file
slug: dxp/docs/export-the-database-to-bacpac-file
docTags: 
createdAt: 2026-07-30T20:33:07.587Z
---

:::hint{type="info"}
- **Prerequisites**
  An Optimizely cloud account to access the self-services for Optimizely DXP. See [Create an Optimizely Cloud Account](docId\:X-MjgQs-93BregnBOiaQI).
- A provisioned project on DXP.
:::

You can export the Optimizely Content Management System (CMS) or Optimizely Customized Commerce database to a `bacpac` file using the API or the DXP Management Portal.

When you export a database, it triggers an export job for the requested database. The export job copies the requested database from the requested environment to a new database in the Integration environment to avoid performance issues in the production environment when the export runs. After this, it exports to a `bacpac` file from the copied database, and stores the `bacpac` on BLOB storage.

:::hint{type="info"}
**Note**
The Export Database process can take from a few hours to several days (in extreme cases). You can export only one database at a time.
:::

1. Select your project on the home page.
2. On the project detail page, open the **Troubleshoot** tab.

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/0pVAec69-1576XbRVv6Yf_9a36f07-troubleshoot-tab.png)

3. Scroll to the Export Database section, select an **Environment**, **Database**, and **Retention Hours**, then click **Export**.

:::hint{type="info"}
**Note**
**Retention hours** specify how long the export is available before it is removed.
:::

4. A confirmation dialog box displays. Click **OK** to start the export database progress. The progress result displays in real-time, and the export database file shows when the export database progress finishes.

![](https://api.archbee.com/api/optimize/BrbvVORKJ5iIeSMZye5kI/TTInVSw6xYm-es7Xx1IBN_4433b13c288b15b570a069e8d1b861d273b170bbd8e19f7a437edc1a92e5ad38-image.png)

:::Paragraph{listStyleType="disc" indent="2"}
**Available Database Files** – If available, click a database file link to download the database file to your local machine.
:::

:::hint{type="info"}
**Note**
You can download the exported database file only when is not expired.
:::

:::Paragraph{listStyleType="disc" indent="2"}
**Expired Database Files** – Click **Show/Hide** to display/hide exported files that expired within the last seven days.
:::
