Migrate from host zoneminder setup to docker keeping monitor zones

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
Adm746
Posts: 2
Joined: Tue Aug 27, 2019 5:57 am

Migrate from host zoneminder setup to docker keeping monitor zones

Post by Adm746 » Tue Aug 27, 2019 6:06 am

I am slowly transferring my home server applications from the host machine to containers using docker-compose. While I have been able to get several versions of a zoneminder-in-docker up and running, I am unable to pull my old monitor zones from the host setup and import them into a docker setup.

I gather from other posts that the zone configurations are contained in the MySQL database, and simply copying the MySQL/zm folder will not suffice. Has anyone successfully migrated from a host setup to a docker setup maintaining your monitor zones? If so could you share the steps? MySQL commands etc.

Adm746
Posts: 2
Joined: Tue Aug 27, 2019 5:57 am

Re: Migrate from host zoneminder setup to docker keeping monitor zones

Post by Adm746 » Wed Aug 28, 2019 6:27 am

so for the QuantumObject\Docker the zones and monitors are stored in .ibd files under their respective names in /var/lib/mysql. Can I simply replace these files, or do I need to use mysql

User avatar
iconnor
Posts: 783
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Migrate from host zoneminder setup to docker keeping monitor zones

Post by iconnor » Wed Aug 28, 2019 1:37 pm

use mysqdump to dump the db and import it into the new mysql server.

Or just import your nightly backup. You do have a nightly backup, right?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests