configure working folders

Forum for questions and support relating to the 1.24.x releases only.
Locked
gian
Posts: 73
Joined: Sun Mar 22, 2009 7:51 pm

configure working folders

Post by gian »

Hi All,

I'm browsing the docs, but I can't find or understand how you setup your working folders.

I would like to place all data in my /home, because I'm the only user on that host, and /home is a large partition.
I don't want to fill up the / partition with jpegs.

How do you tell ZM to save all data in /home/user?
Is the data saved in the db?
Then I guess you have to create another mySQL db in /home/user?

thanks for your time,
-Gian
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The best method is to move the events folder and put a symlink to it in its place.


:!: While moving the event folder, ZM services should be stopped and not restarted until yo have verified everything else is still working like viewing old events through the console, otherwise zm might start removing all your events.

The events folder for most installations is installed with the web pages where the web root for the web server is configured. It would be something like /var/www/ (html | htdocs) and very often put in a zm folder under that path.

Some developers have already moved the events some place like /var/lib/zoneminder/events and in this case you would move the events folder from there to the new location and update the symlink in the web root directory.
gian
Posts: 73
Joined: Sun Mar 22, 2009 7:51 pm

Post by gian »

thanks for your kind reply.

I created this structure in my home:
--zoneminder
-----events
-----images
-----temp

set owner me:www-data, permission 775, and pointed here the symlinks that are in /usr/share/zoneminder.

Am I correct...?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

That sounds right for your setup, if it don't work you will know very soon after starting the services.
So long as you can see the stills and replay recorded events from the console with ZM stopped you should be golden and able to start ZM services again.
Locked