Ballsdex-Team / BallsDex-DiscordBot

Collect and exchange countryballs on Discord
Other
93 stars 152 forks source link

Cannot restore from data-dump.sql #315

Closed newzac0 closed 4 months ago

newzac0 commented 4 months ago

Okay so I was able to make a backup of my data but I have no idea how to restore from it now. Backup was made using this tutorial

Valen7440 commented 4 months ago

In powershell or bash, run this commands

docker exec -i CONTAINERNAME-postgres-db-1 psql -U ballsdex -d ballsdex -c "DROP SCHEMA public CASCADE; CREATE SCHEMA public;"
docker exec -i CONTAINERNAME-postgres-db-1 psql -U ballsdex -d ballsdex < data-dump.sql
newzac0 commented 4 months ago

Thank you so much!