Browse Source

disable backups when in test mode

tags/v0.1.6
Jonathan Cobb 4 years ago
parent
commit
636fbe9b6e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      bubble-server/src/main/java/bubble/service/backup/BackupService.java

+ 4
- 0
bubble-server/src/main/java/bubble/service/backup/BackupService.java View File

@@ -82,6 +82,10 @@ public class BackupService extends SimpleDaemon {
@Override protected void init() throws Exception { backupCleanerService.start(); }

@Override protected void process() {
if (configuration.testMode()) {
log.info("backup: test mode enabled, not backing up");
return;
}
if (isRestoreMode()) {
log.info("backup: restore mode is active, not backing up");
return;


Loading…
Cancel
Save