Page 1 of 1

Move Events Directory to Different Partition/Dropbox

Posted: Fri Nov 04, 2011 4:55 am
by FullMoonMadness
I'm trying to move the events & images directories to a separate hard drive partition (3 GB) that is being synced with Dropbox, and have the disk percentage show correct the amount of space used on the partition on the ZM console page.

Zoneminder 1.24.1
Ubuntu 9.10
The partition is mounted in /etc/fstab with this command:

Code: Select all

/dev/sda3 /home/myname/Dropbox ext4 auto,rw,user,user_xattr 0 2
I tried following the instructions linked below, but they have not worked for me.
http://www.zoneminder.com/wiki/index.ph ... Hard_Drive

The only way I've been able to get the images to my dropbox partition and not have any issues with the cameras recording new events is to create a symlink from /usr/share/zoneminder/events (and images) to my dropbox directory. Of course, that is just a symlink to another symlink since /usr/share/zoneminder/events is linked to /var/cache/zoneminder/events. -- The issue is the disk usage shows as being 5%, which is not accurate.

When I tried the above instructions (from the link), my Source would turn orange. I could click on the camera and view images, but it would not record new alerts (modect mode). The disk usage would show as "-1%". That's right, minus one percent.

Thanks in advance for any ideas or pointers.

Re: Move Events Directory to Different Partition/Dropbox

Posted: Fri Nov 04, 2011 5:23 am
by PacoLM
Hi,

I found this some time ago, but never had time to try it out:
http://wiki.dropbox.com/DropboxAddons/P ... oxUploader
http://jaka.kubje.org/projects/dropbox-uploader/

Post your advances!

PacoLM

Re: Move Events Directory to Different Partition/Dropbox

Posted: Fri Nov 04, 2011 1:09 pm
by FullMoonMadness
Thanks Paco, but I already have dropbox installed on my partition. The difficulty I'm having is getting Zoneminder to recognize the size of the partition and calculate the amount of disk space used correctly (for the purposes of having the audit delete old events so I don't go over my dropbox storage limit).