Forum for questions and support relating to the 1.24.x releases only.
adub
Posts: 26 Joined: Fri Nov 21, 2008 1:10 am
Post
by adub » Tue Feb 09, 2010 6:12 pm
does anyone have any insight to setup an automatic delete of events and/or images that are stored on the hard drive??
I seen a post for events from the database. Was wondering if anyone had tested this script.
Thanks to all who reply
adub
Posts: 26 Joined: Fri Nov 21, 2008 1:10 am
Post
by adub » Tue Feb 09, 2010 6:13 pm
also when you delete events will it delete the images as well
From what I recall I dont think it does but maybe it does I am unsure the script worked with the mysql database
Paranoid
Posts: 129 Joined: Thu Feb 05, 2009 10:40 pm
Post
by Paranoid » Fri Feb 12, 2010 11:47 am
zmaudit.pl performs this task. It will delete images/events from the hard drive that dont have a corresponding entry in the database and vice-versa.
You can set zmaudit to run periodically via the options menu.
mastertheknife
Posts: 678 Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel
Post
by mastertheknife » Fri Feb 12, 2010 1:04 pm
Use filters. You can create your own or use the PurgeWhenFull filter or modify it and save under a new name.
Then you need to enable run in background..
kevin_robson
Posts: 247 Joined: Sun Jan 16, 2005 11:26 am
Post
by kevin_robson » Fri Feb 12, 2010 1:28 pm
Also check whether ZM_OPT_FAST_DELETE is set in options.
If it is then the diskspace will not be reclaimed until you restart zm, which probably isn't what you want.
Paranoid
Posts: 129 Joined: Thu Feb 05, 2009 10:40 pm
Post
by Paranoid » Fri Feb 12, 2010 2:34 pm
kevin_robson wrote: Also check whether ZM_OPT_FAST_DELETE is set in options.
If it is then the diskspace will not be reclaimed until you restart zm, which probably isn't what you want.
zmaudit will reclaim the disk space without restarting zm