DEV Community

Discussion on: Appwrite In Production: Backups and Restores

Collapse
 
brianmutiso profile image
Brian Mutiso

I don't seem to get it, even after running the above commands i still get an empty dump.sql file

Collapse
 
heynicolasklein profile image
Nicolas Klein

I found this solution on discord:

here , what i did and it works
backup data :
docker-compose exec mariadb sh -c 'exec mysqldump --all-databases --add-drop-database -u"user" -p"password"' > ./dump.sql

restore data :
docker-compose exec -T mariadb sh -c 'exec mysql -u”user”-p"password"' < dump.sql