saving/restoring user customizations
Posted: Wed Apr 15, 2015 6:35 pm
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:
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 ?
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
- mysql -uUSER -pPASS zm < dumpfilename.txt
- and so on for the other 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 ?