On 13.08.2012 16:53, Michael Hampicke wrote:
> 2012/8/13 Daniel Troeder <dan...@admin-box.com
>     3rd thought: purging old files with "find"? your cache system should
>     have some kind of DB that holds that information.
> 3: Well, it's a 3rd party application that - in theory - should take
> care of removing old files. Sadly, it does not work as it's supposed to
> be, While time passes the number of orphans grow :(
There is also the possibility to write a really small daemon (less than
50 lines of C) that registers with inotify for the entire fs and
journals the file activity to a sqlite-db.

A simple sql-query from a cron/bash script will then give you all the
files to delete with paths.

It will probably be less work to write the daemon than to do 40
fs-benchmarks - and the result will be the most efficient.

Reply via email to