How to backup from failed server

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Pembrae
Posts: 14
Joined: Tue Feb 23, 2021 4:05 pm

How to backup from failed server

Post 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.
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to backup from failed server

Post 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.
Pembrae
Posts: 14
Joined: Tue Feb 23, 2021 4:05 pm

Re: How to backup from failed server

Post 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?
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: How to backup from failed server

Post by dougmccrary »

command line mysql
How-to is in the docs, or you can find it with search.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: How to backup from failed server

Post by Magic919 »

Have a go at Mysqldump but I’d also copy the Mysql files over as a fallback option.
-
Post Reply