Backup & Restore
Hello
In "self hosting" mode, what is the best way to backup/restore Twenty database?
Using API or pg_dump? How?
3 Replies
I would say pg_dump is the way to go right now 🙂
Merci @charles What is the name of the database? "default"?
I used
psql --username=twenty
command to connect to the DB but I'm not sure it is the right way
Ok, found it. It is in default and "workspace_2".
So I will do pg_dump -U twenty -h localhost -p 5432 -F c default > db1.tar
yes, default is the right one!
you'll find your data in your workspace_xxxx postgres schema but make sure to also dump core and metadata schemas