pgsplit/README.md

11 lines
459 B
Markdown
Raw Normal View History

2024-04-23 21:07:13 +02:00
# Usage
pgsplit takes a PostgreSQL dump with multiple databases through STDIN and extracts them to the current directory, named with the database name and an .sql extension.
2024-04-23 21:08:14 +02:00
`pgsplit -list` prints the database names contained in the SQL dump.
2024-04-23 21:07:13 +02:00
`pgsplit` extracts all databases.
`pgsplit -include-all -except foo -except bar` extracts all databases except for foo and bar.
`pgsplit -exclude-all -except foo -except bar` extracts only databases foo and bar.