[ Paul van Brouwershaven wrote: ]
> I want to configure flexback-up to receive a quick backup report on the
> mail. With something like "SET1: Successful 1,6GB" and  "SET2:
> Successful 851MB" etc.
> 
> Now I get the console output from the cronjob but that's not a quick
> report to analyze.
> 
> Any suggestions?

Some:

 - You could set $verbose=false perhaps (or "-d verbose=false" on the
   commandline) and the report would be much smaller, not sure if that's
   small enough for you.
 - Check the exit status of flexbackup and mail yourself only if non-zero 
 - "grep -i error" the log file? Or tail the last bit of it.


Getting the backup size depends on your setup (which is why there isn't a
generic report like this yet!)  You can grep the "total bytes written"
message from "buffer" out, that tells you the total size for each.  Or you
can use if using a tape you could use mt status or mt tell * blocksize.

Maybe 
 egrep -i "(error|of set|Backup of|bytes written)" <logfile>

will do the trick for you :)


(There does need to be something like this in the program itself, I agree.
How to cover all the cases and differences is the hard bit.)

 -Edwin


-- 
 Edwin Huffstutler 
 [EMAIL PROTECTED]   GnuPG Key ID: AE782DC9


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
flexbackup-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flexbackup-help

Reply via email to