Page 1 of 1

How to backup from failed server

Posted: Fri Jan 14, 2022 4:50 pm
by Pembrae
Can anyone advise if it is possible to take a backup of ZoneMinder from a server that is preventing ZoneMinder from working but Linux itself appears to be working OK.

My server failed to restart after a power outage. Although I eventually got the server and Linux working OK it is still displaying errors which appear to be disk related and ZoneMinder will not start. Looks like a new disk and a rebuild but before I start down that path I was wondering if it is possible to take some files of the existing build, since I can navigate around the file structure. I was hoping to be able to take a copy of the configuration to avoid having to go through the setup process again and ideally the event history .

Thanks.

Re: How to backup from failed server

Posted: Fri Jan 14, 2022 10:47 pm
by dougmccrary
I suggest you try to get the whole ZMdb, as well as just the Monitors table.
Possibly the other tables are bad, but if the Monitors is OK you're ahead.

Re: How to backup from failed server

Posted: Sat Jan 15, 2022 10:03 am
by Pembrae
Thank you for your reply. Please could you advise how I take a copy of the ZMdb and the Monitors table. Is it a case of copying files or is there a command or utility I need to use?

Re: How to backup from failed server

Posted: Sat Jan 15, 2022 11:17 am
by dougmccrary
command line mysql
How-to is in the docs, or you can find it with search.

Re: How to backup from failed server

Posted: Sat Jan 15, 2022 11:53 am
by Magic919
Have a go at Mysqldump but I’d also copy the Mysql files over as a fallback option.