Easiest thing to do when migrating is to copy the Monitor configurations only. That will save you if you have greather than a few cameras, from reconfiguring everything. You can backup the old db with mysqldump, restore it to the new server, and then run zmupdate.pl which will auto update the db to 1.32+
You can either copy just the Monitors table, or copy everything. I think some of the fields don't carry over if you just copy Monitors, so I copy everything.
Code: Select all
(On old server:)
# mysqldump -u zmuser --password=zmpass zm > ./zm_db_backup.sql
(On new server:)
# mysql -u zmuser -p < ./zm_db_backup.sql
As for copying over events, it should be possible, you just need to make sure the events are in the same format (short, medium, long) that the new storage is set for, and in the same location on the file directory. Then run zmaudit.pl and see if it starts deleting old events. If you make a mistake, you can delete the db, restore the db, and try again. So it's not hard, but there may be some troubleshooting involved.
It will be easier to do this with two separate servers.
Basically, if zmaudit looks for the events on the new server and finds them, it will not delete them from the db.