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.
What is the best way to move a camera to a new drive?
Re: What is the best way to move a camera to a new drive?
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?
Sweet I'll look into the filters. Thanks a lot
Re: What is the best way to move a camera to a new drive?
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
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
-
- 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?
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.Zoneminder (the database) will keep track of one camera over different drives
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.