path: root/lib/backupclient
diff options
authorChris Wilson <>2008-09-26 22:18:35 +0000
committerChris Wilson <>2008-09-26 22:18:35 +0000
commit25bd3523fe26b08de0413756673227ccccc332af (patch)
treea5c0c267bff89f2b849f3f58602d972fb9e39263 /lib/backupclient
parentcc17fe1a45f2dd75dea965ec57f1c1c2b1b9223b (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 'lib/backupclient')
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/backupclient/BackupDaemonConfigVerify.cpp b/lib/backupclient/BackupDaemonConfigVerify.cpp
index db1de4fa..e70ba865 100644
--- a/lib/backupclient/BackupDaemonConfigVerify.cpp
+++ b/lib/backupclient/BackupDaemonConfigVerify.cpp
@@ -97,6 +97,11 @@ static const ConfigurationVerifyKey verifyrootkeys[] =
ConfigurationVerifyKey("ExtendedLogFile", 0),
// extended log to a file
ConfigurationVerifyKey("LogAllFileAccess", ConfigTest_IsBool, false),
+ // enable logging reasons why each file is backed up or not
+ ConfigurationVerifyKey("LogFile", 0),
+ // enable logging to a file
+ ConfigurationVerifyKey("LogFileLevel", 0),
+ // set the level of verbosity of file logging
ConfigurationVerifyKey("CommandSocket", 0),
// not compulsory to have this
ConfigurationVerifyKey("KeepAliveTime", ConfigTest_IsInt),
@@ -106,6 +111,9 @@ static const ConfigurationVerifyKey verifyrootkeys[] =
ConfigurationVerifyKey("NotifyScript", 0),
// optional script to run when backup needs attention, eg store full
+ ConfigurationVerifyKey("NotifyAlways", ConfigTest_IsBool, false),
+ // option to disable the suppression of duplicate notifications
ConfigurationVerifyKey("CertificateFile", ConfigTest_Exists),
ConfigurationVerifyKey("PrivateKeyFile", ConfigTest_Exists),
ConfigurationVerifyKey("TrustedCAsFile", ConfigTest_Exists),