[Tutor] rsync python script
eric at ericwalstad.com
Fri Mar 21 17:10:09 CET 2008
Kaushal Shriyan wrote:
> MAILTO=kaushal at example.com <mailto:kaushal at example.com>
> 0 18 * * * rsync -av /var/lib/mysql kaushal at host77:/var/lib/
> If i put this two lines in crontab it will run correctly,My requirement
> was to create a python script, this python script should indicate
> success or failures and the reason for failure
It looks like rsync can output to a text file. Python makes text
parsing a breeze. Have you defined 'indicate', 'success' and 'failure'
yet? When will your python script run? Who/What will run it?
More information about the Tutor