summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/bbackupd/BackupDaemon.cpp12
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");
}