1 |
On 14.08.2012 11:46, Neil Bothwick wrote: |
2 |
> On Tue, 14 Aug 2012 10:21:54 +0200, Daniel Troeder wrote: |
3 |
> |
4 |
>> There is also the possibility to write a really small daemon (less than |
5 |
>> 50 lines of C) that registers with inotify for the entire fs and |
6 |
>> journals the file activity to a sqlite-db. |
7 |
> |
8 |
> sys-process/incron ? |
9 |
Uh... didn't know that one! ... very interesting :) |
10 |
|
11 |
Have you used it? |
12 |
How does it perform if there are lots of modifications going on? |
13 |
Does it have a throttle against fork bombing? |
14 |
must-read-myself-a-little..... |
15 |
|
16 |
A incron line |
17 |
# sqlite3 /file.sql 'INSERT filename, date INTO table' |
18 |
would be inefficient, because it spawn lots of processes, but it would |
19 |
be very nice to simply test out the idea. Then a |
20 |
# sqlite3 /file.sql 'SELECT filename FROM table SORTBY date < date-30days' |
21 |
or something to get the files older than 30 days, and voilá :) |