I have a Windows Server 2019 installation with OpenRMR 6.1. I’ve installed OpenEMR on a Lightsail local instance in Ubuntu 20.04.1.
How can I restore a backup of my Windows instance to a LightSail instance on Ubuntu? I have data on the Windows instance and I want to import it to the LightSail instance using backup and restore.
I am trying to follow this link but I’m confused about the docker bit and the container where openERM is in.
I’m also looking at this link but am lost about what to do.
The second link to Ben’s blog post is your best bet. Is there a particular step that’s giving you problems? You’ll want to start by creating a backup via the GUI on your Windows instance.
No, not there as yet as I still get this error: copying between containers is not supported. Looks like a permissions issue. Will Google the error to see how to modify permissions.
Y’know, I’ve never tested it, but it seems to me that you could expose the docker’s MySQL port and then conceal it again by editing the docker-compose file and doing repeated ups with no down.
No guarantee it wouldn’t delete data if you tried it, I’m not totally familiar with what happens when you up a running composition.
CONTAINER ID IMAGE COMMAND CREATE D STATUS PORTS NAMES
e8a6c9e3c1dc openemr/openemr:6.1.0 “./openemr.sh” 3 days ago Up 19 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :: :443->443/tcp lightsail_openemr_1
5cdab6af5809 openemr/mysql-xtrabackup:latest “docker-entrypoint.s…” 3 days ago Up 19 hours 3306/tcp lightsail_mysql_1
I want to copy c:\openemr.sql.gz and c:\openemr.tar.gz to the Docker containers so I can import the data to a fresh installation of OpenEMR that I installed from lightsail.
This command didn’t work.
docker cp ‘C:\openemr.sql.gz’ e8a6c9e3c1dc:/home
hc4admin@openemrlightsail:~$ sudo docker cp ‘C:\openemr.sql.gz’ e8a6c9e3c1dc:/home
[sudo] password for hc4admin:
copying between containers is not supported
From a Windows 10 PC, I SSH to Ubuntu and run the command
sudo docker cp “C:\openemr.sql.gz” e8a6c9e3c1dc:/home and got this result
copying between containers is not supported
My goal is to restore the gz files I backed up from my Windows installation of OpenEMR 6.1 as I want to migrate from Windows server 2019 XAMPP platform to a linux (Ubuntu 20.04) one. I have a May 2 deadline to go live with Open EMR 6.1. So I’m testing now.