Postgres dump all but one table

Snippet

Those versions and logs tables? You don't really want them in the dump. So, don't include them, use --exclude-table.

pg_dump --exclude-table=TABLE_TO_EXCLUDE $DATABASE_URL

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.