Migrate data from old ZM server to new ZM server

Support and queries relating to all previous versions of ZoneMinder
Locked
barkeep8
Posts: 15
Joined: Fri Mar 31, 2006 2:55 am

Migrate data from old ZM server to new ZM server

Post by barkeep8 »

I'm using ZM 1.2.2 on a p42Ghz with 512 MB ram. It works great with 6 IP cams. I have another ZM 1.2.1 server doing CCTV with 2 BTTV Cards/analog cams serving images to the first server.

I built my main server 1.2.2 from the Live CD. I'd like to run it on Ubuntu instead of Mandrake. I'd also like to upgrade my CCTV box to 1.2.3 on ubuntu. I've had success setting up Ubuntu (6.06) and ZM 1.2.3 on other hardware, so no problem there. I feel confident that I can rebuild both of my ZM boxes on Ubuntu 6.06 and ZM 1.2.3.

What I'd like to be able to do is migrate data from one server to another, or copy it to a safe location in such a way that my archived events and configuration can show up on a new machine with a clean install. Is this possible, and does anyone have any ideas on how to migrate ZM data (configuration, databases and files) across hardware or OS versions?

Thanks in advance.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It should be fairly simple to do. You can stop the zm service, move or copy the evvents to the new machine, then dump the database and load it on the new machine.
barkeep8
Posts: 15
Joined: Fri Mar 31, 2006 2:55 am

Thanks!

Post by barkeep8 »

cordel wrote:It should be fairly simple to do. You can stop the zm service, move or copy the evvents to the new machine, then dump the database and load it on the new machine.
I was hoping it would be. I just wasn't sure if there were major differences in how the data/databases work between versions.

Thanks!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If you are migrating between different versions you should either upgrade the old machine's database to the new machine's version before the data is moved between databases or initially install the equivalent older version on the new machine and then upgrade it after the data move.

Some version don't require much of a DB change if any but better to be safe than sorry.
Phil
Locked