Ballsdex-Team / BallsDex-DiscordBot

Collect and exchange countryballs on Discord
Other
76 stars 126 forks source link

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

Closed nitelystar closed 2 months ago

laggron42 commented 2 months ago

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 commented 2 months ago

Thank you so much