patronage / bubs-next

Headless Wordpress + Next.js Project scaffolding
https://bubs-next.vercel.app
MIT License
37 stars 10 forks source link

DB export argument via env to exclude tables #246

Closed ccorda closed 1 year ago

ccorda commented 1 year ago

Some projects have certain very large tables that aren't needed in an export to get working locally.

WP CLI has the ability to exclude tables, can we add that as an ENV arg, so that we can handle exports via env without having to modify our export file per project.

[--exclude_tables=<tables>]
The comma separated list of specific tables that should be skipped from exporting. Excluding this parameter will export all tables in the database.