Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2015 13:47
Star You must be signed in to star a gist
What would you like to do?
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
Copy link

Gracias por el script de respaldo @muzzammil194

Copy link

icanitam commented Oct 2, 2023

thanks a lot! still work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment