saving/restoring user customizations

Forum for questions and support relating to the 1.25.x releases only.
Locked
vinceskahan
Posts: 4
Joined: Sat Apr 19, 2014 11:04 pm

saving/restoring user customizations

Post by vinceskahan »

I'm looking into coming up with ansible playbooks for rebuilding all my home systems and VMs and had a question about what would be the easiest way to save/restore my zoneminder customizations. I'm running a minimal Debian 7.8 and did a 'apt-get install zoneminder' and had it figure out all the rest. At that point I just needed to define my monitor(s) and zone(s) and filter(s) and it was all done.

For programatically building the same thing based on a working system, is the easiest way to do something like:
  • mysqldump -uUSER -pPASS zm Filters > Filters.dump
  • and similarly for Monitors and Zones
and then on the newly built system:
  • mysql -uUSER -pPASS zm < dumpfilename.txt
  • and so on for the other tables
or is the easiest way to clear the events totally and dump the whole zm database and all tables ?

There's of course no way to know long in advance of a system rebuild which version of zm will be current, so I was a little concerned about compatibility of an old (1.25) database dump versus some future version to be restoring to. Is table-by-table best practice, or just dump/restore the whole zm db ?
Locked