Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 5-6 cron jobs running daily.

Is it possible that when rsync runs, then I can insert the files copies, deleted , size, any errors and all other stuff inside MySQL database. So that I can write php script to see the rsync history.

share|improve this question
add comment

1 Answer

Yes, of course it's possible. Redirect the output to a file, parse it into fields and values using a script. Then do SQL INSERT INTO commands.

share|improve this answer
    
Can everything be done in one step . i mean on rsync command line –  John May 3 '10 at 6:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.