Skip to content
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

How do i backup all of the localhost database in case if it gets lost #245

Closed
nitelystar opened this issue Apr 28, 2024 · 2 comments
Closed

Comments

@nitelystar
Copy link

No description provided.

@laggron42
Copy link
Member

In powershell or bash (not cmd!), run this

docker compose down
docker compose up postgres-db -d
docker compose exec postgres-db pg_dump -U ballsdex ballsdex > data-dump.sql
docker compose down

@nitelystar
Copy link
Author

Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants