pg_dump without postgresql
Basically we don't need any Postgresql server to take the backup. Postgresql client is enough for this.
But you must have sudo privilege to install this client.
For Ubuntu:
echo &quot;deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main&quot; &gt;&gt;  /etc/apt/sources.list.d/pgdg.list
sudo sh -c 'echo &quot;deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main&quot; &gt; /etc/apt/sources.list.d/pgdg.list'
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-client

For RedHat/CentOS/Amazon Linux:
Download the rpm here:
https://yum.postgresql.org/repopackages.php#pg96
yum install postgresql 

Dump the Database
pg_dump -h remote_address -U username -D dbname -Fp &gt; backup.sql


More about Pg_dump:
https://www.postgresql.org/docs/9.6/static/app-pgdump.html