Why are CCTV files stored in /var/lib/motioneye/Camera1 ?

24 views
Skip to first unread message

J J

unread,
Oct 28, 2025, 4:05:06 PMOct 28
to motioneye
The storage path for my CCTV files is 
/var/lib/motioneye/cameraXX  etc

I'm fairly sure the default was in /var/lib.

Now, I don't automatically seem to have the privilege to delete files to clean that up with the Raspbian file manager.
Also I have been adding cameras when experimenting, but when I delete those cameras, motioneye does not delete the folder created for them.
These redundant folders then synch to PCloud, which looks messy.

1 So what are the merits of storing data in /var/lib ?

2 Cold I either (Somehow) grand myself privileges to edit those folders ?    Or should I simply put the data elsewhere?

I'm also trying to write some BASH code to manage maximum folder sizes.   However, I suspect the issue with write privileges may be obstructing that





StarbaseSSD

unread,
Oct 28, 2025, 4:27:22 PMOct 28
to motioneye
motioneye or motioneyeos, and which version of motioneye and the os?
my motioneye 0.42.1 on Debian 10 defaults to /var/lib/motioneye/cameraxx
and has default permissions of 
 drwxr-xr-x  8 root    root    4096 Oct 28 16:17 motioneye
If you are scripting things, you can use a root crontab to run the scripts, or sudo the scripts, or use "Run a Command" from the File Storage group in motioneye to run the script after each new file is created.

StarbaseSSD

unread,
Oct 28, 2025, 4:29:36 PMOct 28
to motioneye
You can also change the default path there to something like /home/<user>/cameras/cameraxx
Reply all
Reply to author
Forward
0 new messages