bsamuels@beenthere-donethat.org.uk wrote:
I am using a backup application which I wrote myself in Free Pascal which uses Afio to do the dirty work in conjunction with my SCSI tape drive.
may I suggest using Amanda as your backup tool instead of writing your own (in Pascal!) unless you need to write your own i guess.
Very occasionally a problem occurs during a backup (read or write error) which causes error messages to be appended to the logs, kern.log, messages. sys.log, at such a rate that it consumes about 500MB in a couple of hours.
what is the error it is giving?
Can anyone suggest a method of monitoring the logs for excessive growth or for the occurrence of the same error message occurring say 25 times which would then automatically kill Afio (which stops the messages).
I can't monitor this from inside my own application once control is passed to Afio for the Backup or Verify.
you could have a launcher wrapper script around your own program that does nasty things as root and watches the log files for more than 25 lines the same and then kill afio like that.
Adam