Migrating Database Connections
  • 03 Nov 2023
  • 1 Minute to read
  • Dark
    Light

Migrating Database Connections

  • Dark
    Light

Article Summary

👤 This documentation is intended for Workspace Admins. Check with your Team Admin for additional access.

Overview

Migrating database connections consists of exporting the DB connection(s) from the source Workspace, and then importing them on the destination Workspace. The export process generates a ZIP file that includes the database connection metadata (with the exception of the password, for security reasons).

There are two ways to migrate database connections:

  • Using the Preset UI
  • Using the Preset API

Migrate Database Connections through the Preset UI

Export process

  1. Access the source Workspace.
  2. Navigate to Data > Databases in the top navigation bar.

Here, you'll find a list of all databases connected to your Workspace. Hover your mouse over the desired one, and click on the Export Icon under the Actions column.

A ZIP file will be downloaded. 

Export Database Connections in bulk
It's possible to export database connections in bulk using the API.

Import process

  1. Access the destination Workspace.
  2. Hover your mouse over the + button on the top right corner, then navigate to Data > Connect database.
  3. Scroll the connection dialog down and click on Import database from file.
  4. Select the ZIP file.
  5. The connection dialog will prompt you to enter the database password. Provide it, and click on CONNECT.

Migrate Database Connections Using the Preset API

This process requires access to the Preset API

The Preset API is only available on the Enterprise Plan.

Users can use the Export Database Connections endpoint and the Import a Database Connection endpoint documented on our API documentation.


Was this article helpful?