Supabase db dump cannot find -f #34305
|
I am following the documentation at: https://supabase.com/docs/guides/platform/migrating-within-supabase/backup-restore I am attempting to Backup database using the CLI and using the Session pooler connection string.
This proceeds to dump the sql to standard out. At the end I see:
Baffled, I check: Usage: Flags: Global Flags: Sure enough, -f is there. So I am baffled, what is wrong with my command? For reference:
Please advise. |
Replies: 1 comment
|
Hey, I had the same thing this morning. It turned out it was how I'd pasted the command into my terminal.
It was running the first line (verified by emitting a log of stuff in the terminal!) but then looking to run the second line as a new command. I ran it as a single line....
And all good! |
Hey, I had the same thing this morning. It turned out it was how I'd pasted the command into my terminal.
It had done it like this:
supabase db dump --db-url postgresql://postgres.blah:my-db-pswd@aws-0-us-west-1.pooler.supabase.com:5432/postgres-f roles.sql --role-onlyIt was running the first line (verified by emitting a log of stuff in the terminal!) but then looking to run the second line as a new command.
I ran it as a single line....
supabase db dump --db-url postgresql://postgres.blah:my-db-pswd@aws-0-us-west-1.pooler.supabase.com:5432/postgres -f roles.sql --role-onlyAnd all good!