pg_dump / pg_restore
# spicedb
t
Has anyone successfully dealt with database-level backups and restores? I've inherited a spicedb system, I'm fairly new to it overall. I'm running into problems trying to take and restore a backup using the Postgres tools
pg_dump
and
pg_restore
. The backup seems to be clean, the restore seems to work, (as in, there are no pg errors reported during the backup or restore), but after the restore I'm having difficulty getting things to work. I don't have easy access to the original spicedb installation in order to run
zed
against the source (I'm working on that), so it's difficult to compare expected behavior. Running either
zed schema read
or
zed backup
against a freshly restored database just gives
Error: rpc error: code = NotFound desc = No schema has been defined; please call WriteSchema to start
. I'm hoping there's something simple I'm missing...
v
Your best bet for now is using the new bulk export / import commands https://buf.build/authzed/api/docs/main:authzed.api.v1#authzed.api.v1.ExperimentalService Is this a self-hosted SpiceDB or are you guys using authzed.com? Bulk Import/Export isn't yet released in authzed.com
5 Views