That part can be done really easy with pyinotify like in cloudsync.sh: http://talk.maemo.org/showpost.php?p...61&postcount=8