mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 22:17:57 +01:00
pg_dump: added -a and -s examples (#2856)
This commit is contained in:
parent
a2a2a52231
commit
0207fe045a
1 changed files with 8 additions and 0 deletions
|
@ -17,3 +17,11 @@
|
|||
- Dump a database into a custom-format archive file:
|
||||
|
||||
`pg_dump -Fc {{db_name}} > {{output_file.dump}}`
|
||||
|
||||
- Dump only database data into an SQL-script file:
|
||||
|
||||
`pg_dump -a {{db_name}} > {{path/to/output_file.sql}}`
|
||||
|
||||
- Dump only schema (data definitions) into an SQL-script file:
|
||||
|
||||
`pg_dump -s {{db_name}} > {{path/to/output_file.sql}}`
|
||||
|
|
Loading…
Reference in a new issue