cli icon indicating copy to clipboard operation
cli copied to clipboard

supabase db dump -x flag not excluding all files in list

Open rtessler opened this issue 10 months ago • 2 comments

Bug report

$ supabase db dump --data-only -f file.sql -x . .

only the first table is excluded from the dump

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

To Reproduce

include more than 1 table in the exclude list

Expected behavior

All files in exclude list should be omitted from the dump

Screenshots

System information

  • OS: macOS
  • Browser (if applies) NA
  • Version of supabase-js: 2.15.18
  • Version of Node.js: 22.11

Additional context

Add any other context about the problem here.

rtessler avatar Feb 27 '25 16:02 rtessler

Hi, I've moved this issue over from the supabase repo to cli.

Hallidayo avatar Mar 09 '25 19:03 Hallidayo

@rtessler Have you tried adding the tables separated by commas? ie:

supabase db dump -f supabase/seed-sql --data-only --exclude "auth.audit_log_entries,auth.refresh_tokens,auth.sessions"

jerocosio avatar May 17 '25 03:05 jerocosio