0

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.

benRollag
  • 141
  • 5

1 Answers1

1

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.

Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151