Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 418 Bytes

export-dump.md

File metadata and controls

16 lines (9 loc) · 418 Bytes

Export Database Dump

pg_dump -U {{USERNAME}} -h {{HOST}} {[DATABASE]} > {{DUMP_FILE_NAME}}

  • USERNAME: Databse username
  • HOST: Hostname
  • DUMP_FILE_NAME: Filename/path to store the dump into. (This should be .sql file)

Example:

pg_dump -U ak-cli-user -h ak-cli-12qq1ww1w.rds.amazonaws.com ak-cli-database > dump-july-2019.sql

Related