I know about Guard Gem which can keep listening to changes to a file and trigger a script based on the change (though i have never used it). .
But right now that is not exactly what i need . .I need a similar tool to keep listening to the changes in a particular table in the database . .I need to trigger a script if there is any change . .
Additional Details
I'm using a tool called Jasper Server which is basically a reporting engine. . It runs as a webapp on top of tomcat . .
It is very convenient while designing a new report to add most of the features through the User Interface . .However as I make changes the changes are stored locally in the table named jasperserver(I presently use PostgreSQL, probably it is very similar with other db's).
So whenever i need to take a copy of my report , i have to do
$JASPER_HOME/buildomatic/js-export.sh --uris Path/In/JasperServer --output-dir Path/In/FileSystem
This takes the picture of the jasperserver table and creates the Report folder. .Which can be deployed on other machines . .
However i find that this is a manual step i feel that there has to be some way to automate this process . .So i was wondering if there is any tool to guard the database rather than a plain file. .
Any Suggestions . .Please reply . .