File b = new File(target.getParentFile(), target.getName() + "." + backupString);
log.debug("Backing up old settings to: {}", b.getAbsolutePath());
if (!target.renameTo(b)) {
io.error("Cannot rename existing settings to backup file.\nExisting file: {}\nBackup file: {}",
target.getAbsolutePath(), b.getAbsolutePath());
return Result.FAILURE;
}
log.info("Existing settings backed up to: {}", b.getAbsolutePath());