diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-04 23:15:55 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-04 23:15:55 +0000 |
commit | 03b4c480629741282b0cee8624e42238c281cbf2 (patch) | |
tree | eb746ffb5614955a8a536db04655d9ab50a7739e /bin/bbackupd/BackupDaemon.cpp | |
parent | 8a62430b08d8ce2d3cce4bc4296085b4d7ae51d9 (diff) |
Log statistics before BackupFinish event, so that they can be used
in reporting in the NotifyScript.
Diffstat (limited to 'bin/bbackupd/BackupDaemon.cpp')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index 3530291f..1762142b 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -974,12 +974,6 @@ void BackupDaemon::OnBackupFinish() // Log BOX_NOTICE("Finished scan of local files"); - // Notify administrator - NotifySysadmin(SysadminNotifier::BackupFinish); - - // Tell anything connected to the command socket - SendSyncStartOrFinish(false /* finish */); - // Log the stats BOX_NOTICE("File statistics: total file size uploaded " << BackupStoreFile::msStats.mBytesInEncodedFiles @@ -991,6 +985,12 @@ void BackupDaemon::OnBackupFinish() // Reset statistics again BackupStoreFile::ResetStats(); + // Notify administrator + NotifySysadmin(SysadminNotifier::BackupFinish); + + // Tell anything connected to the command socket + SendSyncStartOrFinish(false /* finish */); + // Touch a file to record times in filesystem TouchFileInWorkingDir("last_sync_finish"); } |