Migrate Postgres Data
Migrate Postgres data to shuttle.dev
This guide shows how to restore schemas and table data in a Shuttle database. Dumping data is a planned feature.
If you encounter issues, feel free to contact us for help.
Prerequisites
To run the data upload against the database, you need a Postgres Client.
In this guide, we will use psql
.
On Debian/Ubuntu, you can install it with:
Shuttle Postgres databases run Postgres version 16, so psql
versions older than 16 might not work.
Restore data from a SQL file
Use the following command to get the connection string for the new database:
Use psql to run the dump file against it:
You might see various errors about tables, rows, or constraints already existing in the new database. In most cases this is fine, but you can verify that everything looks good by connecting to the database, and testing the app.
Was this page helpful?