I have installed v1.25 ZoneMinder. I have 3 disk in Raid 5 and other disk for backup, all in the same machine.
I want to know how to back up my data to my backup drive, but I also want to read from the backup disks ZM. This because I have configured IP cameras 20 and I meet many events. I thinking in have only one month of data and others data in backup partition.
In fact I had installed the same on a CentOS 5.x, but now I installed on CentOS 6.x Basically I did the OS upgrade due to the limitation of number of directories that is ext3.
I hope to do the backup without stopping the Zoneminder services.
Backup data zoneminder and Database and something more.
-
- Posts: 10
- Joined: Wed Jun 13, 2012 3:48 pm
Re: Backup data zoneminder and Database and something more.
I have cobbled together a backup script of my own. Maybe someone has done this before but I couldn't find anything that fitted specific requirement.
I have a 400GB partiotion on my ZM box for the events and images. That gives me up to 21 days worth of events but sometimes only 18 days so I have a filter that runs in batch to delete anything over 18 days. I also set up a Samba share on the events folder.
I set up a daily process to copy the events folder to my desktop harddrives (say A nd B) and an external USB also on the desktop. The script runs on my desktop (pull rather than push the data).
1) Delete events on USB > 60 days
2) Copy events > 40 days old from B to USB
3) Delete events > 42 days old on B
4) Copy events > 20 days old from A to B
5) Delete events > 22 days old on A
6) Copy events from Samba share to A
I figure that I dont need to use ZM to browse the events stored on my desktop. If I need to locate an incident that much I'll just browse the jpgs in the folders.
I never meant to publish the script but let me know if you want to try it. I am already thinking of how to rework it so there is no overlap of events on different drives but while I have somthing that works I have less incentive to do it.
Tony
I have a 400GB partiotion on my ZM box for the events and images. That gives me up to 21 days worth of events but sometimes only 18 days so I have a filter that runs in batch to delete anything over 18 days. I also set up a Samba share on the events folder.
I set up a daily process to copy the events folder to my desktop harddrives (say A nd B) and an external USB also on the desktop. The script runs on my desktop (pull rather than push the data).
1) Delete events on USB > 60 days
2) Copy events > 40 days old from B to USB
3) Delete events > 42 days old on B
4) Copy events > 20 days old from A to B
5) Delete events > 22 days old on A
6) Copy events from Samba share to A
I figure that I dont need to use ZM to browse the events stored on my desktop. If I need to locate an incident that much I'll just browse the jpgs in the folders.
I never meant to publish the script but let me know if you want to try it. I am already thinking of how to rework it so there is no overlap of events on different drives but while I have somthing that works I have less incentive to do it.
Tony
-
- Posts: 10
- Joined: Wed Jun 13, 2012 3:48 pm
Re: Backup data zoneminder and Database and something more.
Great!.
I wanna probe your script. I believe that this it'll works to me
I wanna probe your script. I believe that this it'll works to me