deleting old images and events

Forum for questions and support relating to the 1.24.x releases only.
Locked
adub
Posts: 26
Joined: Fri Nov 21, 2008 1:10 am

deleting old images and events

Post by adub »

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

on the above

Post by adub »

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 »

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 »

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 »

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 »

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
Locked