What is the best way to move a camera to a new drive?

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
aarons6
Posts: 44
Joined: Mon Feb 08, 2016 12:13 pm

What is the best way to move a camera to a new drive?

Post 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.
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: What is the best way to move a camera to a new drive?

Post 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.
aarons6
Posts: 44
Joined: Mon Feb 08, 2016 12:13 pm

Re: What is the best way to move a camera to a new drive?

Post by aarons6 »

Sweet I'll look into the filters. Thanks a lot
User avatar
burger
Posts: 442
Joined: Mon May 11, 2020 4:32 pm

Re: What is the best way to move a camera to a new drive?

Post 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.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
dougmccrary
Posts: 1327
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: What is the best way to move a camera to a new drive?

Post 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.
Post Reply