Overview
This guide walks you through migrating your data from a self-hosted Blnk Core instance to a hosted Core instance managed by Blnk. The migration process involves exporting data from your self-hosted PostgreSQL database and importing it into your Cloud-hosted database with Blnk.Prerequisites
The migration process may take several hours depending on your database size. Plan for downtime during the migration window.
- Deploy Core on Blnk Cloud: Deploy a new managed Core instance on Blnk Cloud. See the Managed Instances guide to get started.
- Install PostgreSQL: Ensure that PostgreSQL is installed on your terminal.
- Self-hosted database access: You have access and connection details (username, password, host, port, and database name) to your self-hosted database.
Migration process
1
Dump your self-hosted database
Export your self-hosted database data to a custom format file:You can check that it’s been created by running:
2
Generate DB access for your Cloud-hosted instance
Generate database access credentials for your hosted instance. See also: Direct DB access guide.

3
Delete existing default rows from your Cloud-hosted DB
Connect to the hosted database via Delete the default ledger from the hosted instance to prevent duplicate conflicts when copying data from your source database:Exit
psql:psql using \q.4
Import your data into your Cloud-hosted DB
Run the following command from the folder containing the
blnk_data.dump file:Depending on the size of your data, the import process may take a while. The
--verbose flag will show progress as the data is imported.5
Verify that everything works fine
On your Cloud workspace:
- Confirm that you can see all the records in your data.
- Confirm that the record counts match between both databases.
- Confirm that you can create/update records via the API or dashboard.