Monitor file changes?

Status
Not open for further replies.

warri

Guru
Joined
Jun 6, 2011
Messages
1,193
Hello,

I want to write a small database for my file collection. To update it automatically I need to monitor file changes or at least folder creations / deletions.
Iterating over all folders doesn't seem to be a good idea, so I thought about a little shell script, which just writes all changes into a plain text file. That would enable me to periodically access this file and persist the changes to the DB.

I'm not the most experienced unix/linux user, so any idea if there is an easy way to achieve this?

[edit]
I have found this: http://www.freshports.org/sysutils/wait_on, which seems to provide exactly this possibility. But installing packages sadly isn't a good alternative in FreeNAS yet :\
 
Status
Not open for further replies.
Top