Created
May 6, 2022 10:17
-
-
Save lurepheonix/e2e7e73a11ba1f35aac435719756ccfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# restore | |
cat DATABASE_SQL | pv | docker exec -i CONTAINER /usr/bin/mysql -u MYSQL_USER --password=MYSQL_PASSWORD DATABASE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment