I'm new to postgresql, and locally, I use pgadmin3. On the remote server, however, I have no such luxury.
I've already created the backup of the database and copied it over, but, is there a way to restore a backup from the command line? I only see things related to GUI or to pg_dumps, so, if someone can tell me how to go about this, that'd be terrific!
This worked for me:
If you have a backup SQL file then you can easily Restore it. Just follow the instructions, given in the below
Type password for your postgres user if needed and let Postgres to do its work. Then you can check the restore process.