Instantly share code, notes, and snippets.
Command to Backup Postgres database:
pg_dump database_name -U db_user_name -h host > ~/backup.sql