Can a script be triggered by an rsync backup?
I'm looking to backup a Moodle installation running on one virtual server, and a Joomla installation on another. I've tested rsync to pull the data from one, then the other onto a physical backup server which works with no problems but ideally I don't want to have the MySQL databases pre-dumped in order to back them as they won't be in sync with the data. Is it possible to launch a trigger a script by initiating an rsync connection or would I have to make use some kind of remote execution script that would do all the prep work beforehand, then initiate the rsync connection. I want to keep it as simple as possible though so somehow getting the rsync daemon to dump the database seems the ideal way to do. It seems logical to me that something like rsync would have a pre and post transfer command option.