How to Backup/Restore in PostgreSQL pgAdmin 4?
You may find the docs useful
It sounds to me like pg_dump is &quot;The Backup Dialog&quot; and pg_dumpall is &quot;The Backup Server Dialog&quot;.

The Backup Dialog

Using the pg_dump utility, pgAdmin provides an easy way to create a backup in a plain-text or archived format. You can then use a client application (like psql or the Query Tool) to restore a plain-text backup file, or use the Postgres pg_restore utility to restore an archived backup. The pg_dump utility must have read access to all database objects that you want to back up.


The Backup Server Dialog

Use the Backup Server dialog to create a plain-text script that will recreate the selected server. You can use the pgAdmin Query Tool to play back a plain-text script, and recreate the server.