Page 1 of 1
What is the best way to move a camera to a new drive?
Posted: Sat Oct 26, 2024 7:57 pm
by aarons6
i know i can just go in the settings and tell it to use the new drive, but that would leave all its files on the old drive and i dont think the system would see them?
do i just mount the new drive and go in and move all the files from the old drive and then change the settings?
i would like to do it without breaking the database.
also im still going to use the old drive, just adding one and moving some cameras to it.
Re: What is the best way to move a camera to a new drive?
Posted: Sat Oct 26, 2024 8:20 pm
by iconnor
YOu can create a filter to move the events from the old drive to the new drive. Or just leave them be and let them age out.
Re: What is the best way to move a camera to a new drive?
Posted: Sat Oct 26, 2024 11:30 pm
by aarons6
Sweet I'll look into the filters. Thanks a lot
Re: What is the best way to move a camera to a new drive?
Posted: Sun Oct 27, 2024 12:05 am
by burger
aarons6 wrote: ↑Sat Oct 26, 2024 7:57 pm
i know i can just go in the settings and tell it to use the new drive, but that would leave all its files on the old drive and i dont think the system would see them?
I just ran into this recently, and if I am not mistaken, Zoneminder (the database) will keep track of one camera over different drives, after a move.
Alternatively, you can delete the events from the old drive, and run zmaudit.pl with the camera id to remove all events in the database that refer to the old hdd.
Re: What is the best way to move a camera to a new drive?
Posted: Fri Nov 01, 2024 9:40 pm
by dougmccrary
Zoneminder (the database) will keep track of one camera over different drives
Yes. E.g., when needing to upgrade drive space, you can add the new drive with a new name, then change the storage areas to the new.
ZM then knows when the changes happened and the old drive's data will remain available, and eventually age out, at which point you can remove it with no complaints from ZM. If you do not wait for all the old drive data to age out, it will complain.
You can also split the cameras among multiple drives this way.