1 |
On 13.08.2012 16:53, Michael Hampicke wrote: |
2 |
> 2012/8/13 Daniel Troeder <daniel@×××××××××.com |
3 |
> 3rd thought: purging old files with "find"? your cache system should |
4 |
> have some kind of DB that holds that information. |
5 |
> 3: Well, it's a 3rd party application that - in theory - should take |
6 |
> care of removing old files. Sadly, it does not work as it's supposed to |
7 |
> be, While time passes the number of orphans grow :( |
8 |
There is also the possibility to write a really small daemon (less than |
9 |
50 lines of C) that registers with inotify for the entire fs and |
10 |
journals the file activity to a sqlite-db. |
11 |
|
12 |
A simple sql-query from a cron/bash script will then give you all the |
13 |
files to delete with paths. |
14 |
|
15 |
It will probably be less work to write the daemon than to do 40 |
16 |
fs-benchmarks - and the result will be the most efficient. |