diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-26 22:18:35 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-26 22:18:35 +0000 |
commit | 25bd3523fe26b08de0413756673227ccccc332af (patch) | |
tree | a5c0c267bff89f2b849f3f58602d972fb9e39263 /bin/bbackupd/BackupClientDirectoryRecord.cpp | |
parent | cc17fe1a45f2dd75dea965ec57f1c1c2b1b9223b (diff) |
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.
Diffstat (limited to 'bin/bbackupd/BackupClientDirectoryRecord.cpp')
-rw-r--r-- | bin/bbackupd/BackupClientDirectoryRecord.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/bbackupd/BackupClientDirectoryRecord.cpp b/bin/bbackupd/BackupClientDirectoryRecord.cpp index 82695a71..201fae59 100644 --- a/bin/bbackupd/BackupClientDirectoryRecord.cpp +++ b/bin/bbackupd/BackupClientDirectoryRecord.cpp @@ -1530,7 +1530,8 @@ int64_t BackupClientDirectoryRecord::UploadFile( { rContext.UnManageDiffProcess(); - if(e.GetType() == ConnectionException::ExceptionType && e.GetSubType() == ConnectionException::Protocol_UnexpectedReply) + if(e.GetType() == ConnectionException::ExceptionType && + e.GetSubType() == ConnectionException::Protocol_UnexpectedReply) { // Check and see what error the protocol has, // this is more useful to users than the exception. @@ -1541,7 +1542,8 @@ int64_t BackupClientDirectoryRecord::UploadFile( && subtype == BackupProtocolClientError::Err_StorageLimitExceeded) { // The hard limit was exceeded on the server, notify! - rParams.mrSysadminNotifier.NotifySysadmin(BackupDaemon::NotifyEvent_StoreFull); + rParams.mrSysadminNotifier.NotifySysadmin( + SysadminNotifier::StoreFull); // return an error code instead of // throwing an exception that we // can't debug. |