Ignore:
Timestamp:
26/09/2008 23:18:35 (4 years ago)
Author:
chris
Message:

Add file logging support (LogFile and LogFileLevel config options).

Ensure that backup-finish is always called, and add a new event,
backup-ok, which is called just before backup-finish when the backup
run was successful.

Keep track of the last backup status notification sent (excluding
backup-start and backup-finish) and send a notification whenever it
changes.

Add a new boolean option, NotifyAlways?, to override that check and
always send notifications to the NotifyScript after every backup run,
for notify scripts which do their own state tracking or otherwise
require notification on every event.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupClientDirectoryRecord.cpp

    r2301 r2302  
    15311531                rContext.UnManageDiffProcess(); 
    15321532 
    1533                 if(e.GetType() == ConnectionException::ExceptionType && e.GetSubType() == ConnectionException::Protocol_UnexpectedReply) 
     1533                if(e.GetType() == ConnectionException::ExceptionType && 
     1534                        e.GetSubType() == ConnectionException::Protocol_UnexpectedReply) 
    15341535                { 
    15351536                        // Check and see what error the protocol has, 
     
    15421543                                { 
    15431544                                        // The hard limit was exceeded on the server, notify! 
    1544                                         rParams.mrSysadminNotifier.NotifySysadmin(BackupDaemon::NotifyEvent_StoreFull); 
     1545                                        rParams.mrSysadminNotifier.NotifySysadmin( 
     1546                                                SysadminNotifier::StoreFull); 
    15451547                                        // return an error code instead of 
    15461548                                        // throwing an exception that we 
Note: See TracChangeset for help on using the changeset viewer.