[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

check for file change in subtree

hey, wondering if anyone can help me out... not using anything but
scripting methods, how could i check a file system subtree for
changes? i need "immediate rsync", so ideally the script
"trigger-on-change" would operate like:

while true; do
  trigger-on-change ~/data
  # trigger-on-change returns only if there is a change to a file, a
  # new file, or a file deleted in the subtree rooted at ~/data.
  rsync -avzutC -e ssh --progress --delete ~/data/ $dest

any ideas?

[greetings from the heart of the sun]# echo madduck@!#:1:s@\@@@.net
micros~1: for when quality, reliability, and security
          just aren't that important!

Reply to: