How to clone database?

To clarify I want to export the database from my Local Windows 10 computer and import it to my Ubuntu 20.04 server. I use PostgreSQL version 12.6 on both my Windows computer and my Ubuntu server. I have setup Strapi with PostgreSQL, and it is utilising it.