Error on "Migrating and Upgrading Projects" docs

https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects#backup-your-old-database
specifically on the "Backup your old database" section, I was trying to do a pg_dump of a previous project to another (both inside Supabase) and got a bunch of weird exceptions, most from my side, but then got this one:
pg_dump: error: connection to server at "db.MY-PROJECT-NAME.supabase.co" (MY-PROJECT-IP), port 5432 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

At first, I thought it was due to my laggy connection, but then working with the -h command in the terminal I discovered a --workdir command to specify where the files should be stored, after I added the --workdir command and a String path, I got the db dumped successfully. I think you should add that "--workdir" parameter in the doc.
Upgrade your project to the latest version of Supabase.
Was this page helpful?