diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-11-16 23:12:16 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-11-16 23:12:16 +0000 |
commit | 521c70553125b6da53c65a60e36fcc18aec36565 (patch) | |
tree | dc41c006f1c4ac7f40f98be7f1ef318c13e5d15f /bin | |
parent | 258e57eaecfe85356181706d70141a2563d22737 (diff) |
Add option to truncate log file at start of every backup.
Prevents backup log files from becoming too large.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index 832ff314..79482e21 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -1690,6 +1690,8 @@ void BackupDaemon::CleanupVssBackupComponents() void BackupDaemon::OnBackupStart() { + ResetLogFile(); + // Touch a file to record times in filesystem TouchFileInWorkingDir("last_sync_start"); |