FerryDocs

Move your Postgres data

Write the Render database into a file with pg_dump, then load the file into the Ferry datastore.

Edit on GitHub
psqlRenderyour databasepg_dumpshop.sqlshop-dbferry-ds-shop-db

pg_dump reads the Render database through its external URL.

1 / 3

Stop the writes on Render

Stop the writes while you copy, or plan a short maintenance period.

Write the Render database into a file

Terminal
docker run --rm postgres:16-alpine pg_dump --no-owner --no-acl "$RENDER_EXTERNAL_DATABASE_URL" > shop.sql

runs from an . Use an image that is as new as the version of the Render server, or newer.

Find the user and the database

Terminal
ferry db show shop-db    # prints the Database and User to load into

Load the file into the Ferry datastore

Terminal
docker exec -i ferry-ds-shop-db psql -U shop_db shop_db < shop.sql

runs in the of the . Replace shop_db with the User and the Database that ferry db show prints.

On this page