====== inotify-tools on OpenVZ ====== watch.sh #!/bin/sh inotifywait -e delete -e modify -r -m $1 | while read dir events file; do echo "$(date) : $events : $dir$file" done run: screen /bin/bash -c "./watch.sh /var/www/yoursite.tld/www > yoursite.files.log"