Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save akshaymohite/fbd0a07fb01287883aa644a1fd283af4 to your computer and use it in GitHub Desktop.
Save akshaymohite/fbd0a07fb01287883aa644a1fd283af4 to your computer and use it in GitHub Desktop.
Command to Backup Postgres Database

Command to Backup Postgres database:

pg_dump database_name -U db_user_name -h host > ~/backup.sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment