DEV Community

Discussion on: Appwrite In Production: Backups and Restores

Collapse
 
subrotoxing profile image
subrotoxing • Edited

I'm trying to backup my database ... but dump.sql seems to be empty... please advise

i'm typing this into cmd where the .env file located

docker-compose exec mariadb sh -c exec mysqldump --all-databases --add-drop-database -u user -p password > ./dump.sql

Collapse
 
meldiron profile image
Matej Bačo • Edited

Hey there 👋 Tiny syntax mistake, it should be:

docker-compose exec mariadb sh -c exec mysqldump --all-databases --add-drop-database -u"user" -p"password" > ./dump.sql
Enter fullscreen mode Exit fullscreen mode
Collapse
 
heynicolasklein profile image
Nicolas Klein

Still does not work for me on Appwrite v15