MariaDB – create and restore Backups

Create Backup

docker exec Container_Name /usr/bin/mysqldump -u root --password=Root_Passwd DB_name > backup_date.sql

Restore Backup

cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE

Was this helpful?

0 / 0

Schreibe einen Kommentar 0