Code: Select all
<?xml version="1.0" ?>
<!DOCTYPE config SYSTEM "/etc/iwatch/iwatch.dtd" >
<config charset="utf-8">
<guard email="root@localhost" name="iWatch"/>
<watchlist>
<title>Backups</title>
<contactpoint email="root@localhost" name="Administrator"/>
<path type="recursive" events="default" syslog="on" alert="off" exec="echo %f:%e >> /home/tushar/iwatch.bak"> /home/tushar/Programming</path>
<path type="recursive" events="default" syslog="on" alert="off" exec="echo %f:%e >> /home/tushar/iwatch.bak"> /home/tushar/Documents</path>
<path type="recursive" events="default" syslog="on" alert="off" exec="echo %f:%e >> /home/tushar/iwatch.bak"> /home/tushar/Downloads</path>
<path type="recursive" events="default" syslog="on" alert="off" exec="echo %f:%e >> /home/tushar/iwatch.bak"> /home/tushar/bin</path>
<path type="single" events="default" syslog="on" alert="off" exec="echo %f:%e >> /home/tushar/iwatch.bak"> /home/tushar/.bashrc</path>
</watchlist>
</config>
syslog shows iwatch daemon is being started and /var/run/iwatch.pid contains the pid of the process. I also looked at dmesg but I don't see any inotify related messages in dmesg.
OS: Ubuntu 15.04 (64-bit) running as a guest in virtualbox.