Kaptain.
Telegram /
LinkedIn /
Email /
GIT /
RSS /
GPG /

№ 9567 В разделе
Sysadmin
от November 22nd, 2018,
В подшивках: Backups, Docker, MySQL
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
Fortune cookie: Mary had a little lamb, She kept it in a bucket. And every time she let it out, The bulldog used to ... Umm, chase it around the garden.
Leave a Reply