Skip to content

Commit

Permalink
o JENKINS-10381: create FULL backup if no backup was created yet even…
Browse files Browse the repository at this point in the history
… in a scheduled scenario.

git-svn-id: https://svn.jenkins-ci.org/trunk/hudson/plugins/thinBackup@39662 71c3de6d-444a-0410-be80-ed276b4c234a
  • Loading branch information
msteinkogler committed Jul 20, 2011
1 parent 0c9fd90 commit ab2399e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -109,7 +109,7 @@ public HudsonBackup(final File backupRoot, final File hudsonHome, final BackupTy
this.backupType = backupType;
}

backupDirectory = Utils.getFormattedDirectory(backupRoot, backupType, date);
backupDirectory = Utils.getFormattedDirectory(backupRoot, this.backupType, date);
}

public void backup() throws IOException {
Expand Down Expand Up @@ -380,13 +380,13 @@ public ZipperThread(final File backupRoot, final File currentBackup) {

@Override
public void run() {
LOGGER.info("Starting zipper thread...");
LOGGER.fine("Starting zipper thread...");
try {
Utils.moveOldBackupsToZipFile(backupRoot, currentBackup);
} catch (final IOException ioe) {
LOGGER.log(Level.SEVERE, "Cannot zip old backups.", ioe);
}
LOGGER.info("DONE zipping.");
LOGGER.fine("DONE zipping.");
}

}

0 comments on commit ab2399e

Please sign in to comment.