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)
pg_dump -U ak-cli-user -h ak-cli-12qq1ww1w.rds.amazonaws.com ak-cli-database > dump-july-2019.sql