api.facundoitest.space) and create a backup using mysqldump. Replace facundo with your username and VeeamReports with your database name:mysqldump -u facundo -p VeeamReports > veeamreports.bak
veeamreports.bak in the current directory.scp to transfer the backup file to the Docker host (e.g., racknerd-vpn.facundoitest.space):scp ./veeamreports.bak [email protected]:/home/facundo/sql-migration/
/home/facundo/sql-migration/ on the Docker host.docker exec -it mariadb /bin/bash
docker cp /home/facundo/sql-migration/veeamreports.bak mariadb:/veeamreports.bak
/backup in the container):docker run -d --name mariadb -v /home/facundo/sql-migration:/backup mariadb
docker exec -it mariadb /bin/bash
VeeamReports is the database name and facundo the user:mariadb -u facundo -p VeeamReports < veeamreports.bak
VeeamReports:mariadb -u facundo -p SHOW TABLES IN VeeamReports;
Notes
facundo has the necessary permissions on both the source and destination databases.mariadb is not recognized, try mysql or confirm the correct executable name for MariaDB in your setup.