If you have a .backup file from pgAdmin4, then it can be restored using `pg_restore`. Use this command to restore : `pg_restore -h -U -d /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` --- ### Optional You can create a backup using this command `pg_dump -h -U -F c -d -f /backup/mydb.backup` `pg_dump -h 172.17.0.1 -U postgres -F c -d mydb -f /backup/mydb.backup`