-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export all databases from service #180
Comments
Currently, we only support a single database, so the existing functionality is expected. The code for export is here, pull requests welcome! |
My Docker knowledge is too thin to help you with the pull request. |
There isn't any docker knowledge necessary here. I'm quite literally just running the |
Maybe we could add another argument to specify the table to use in the export. That way, it would be more clear that the db is exporting only one table. Is there any contribution guidelines? Never done this before but I could probably try a PR, looks like simple fix. |
Pull requests welcome. I get to them as I have time. |
Looks like a good alternative would be exposing the Though I'm not sure if |
✨ Actually clone the service, not just the SERVICE_NAME DB See dokku#180
I have deployed a Prisma Server like this:
https://www.prisma.io/tutorials/deploy-prisma-to-dokku-ct15
I have named the dokku postgres service 'prismadb'.
The Prisma Server is working fine.
But I need to do backup of the service.
dokku postgres:export prismadb > prismadb.dump
gives me:
It's empty, but it should contain some data which I have added.
So after doing:
dokku postgres:connect prismadb
prismadb=# \l
I get:
So after checking logs I see that Prisma during deploy is creating a 'prisma' database.
The data is there, I checked.
How can I export all databases from the service?
Seems like the
dokku postgres:export prismadb > prismadb.dump
is only exporting the database which is named like the service.
The text was updated successfully, but these errors were encountered: