Data scope
Table definitions are always backed up. Only rows are skipped. Background: Data scope.
-- skip rows of theseSELECT pgbx.set_data_scope(exclude => ARRAY['public.sessions', 'audit_log_*']);-- keep rows of only theseSELECT pgbx.set_data_scope(include => ARRAY['billing.*', 'users']);-- what the next backup skipsSELECT * FROM pgbx.rowless_tables();-- back to everythingSELECT pgbx.set_data_scope();pgbx scope --db myapp # showpgbx scope --db myapp --exclude public.sessions --yes # narrowing is guardedpgbx scope --db myapp --resetAfter a restore, skipped tables exist but are empty.