If you have a .backup file from pgAdmin4, then it can be restored using pg_restore
.
Use this command to restore :
pg_restore -h <your_db_host> -U <your_db_user> -d <your_db_name> /backup/mydb.backup
This is the example of using the command:
pg_restore -h 172.17.0.1 -U postgres -d mydb /backup/mydb.backup
You can get your host IP using this : hostname -I