FileNameProducer.generateBackupSetDir(config.getRepository(), config.getWorkspace(), config
.getBackupDir().getPath(), startTime);
dir.mkdirs();
config.setBackupDir(dir);
BackupChain bchain =
new BackupChainImpl(config, logsDirectory, repoService,
fullBackupType, incrementalBackupType, IdGenerator.generate(), logsDirectory, startTime);
bchain.addListener(messagesListener);
bchain.addListener(jobListener);
currentBackups.add(bchain);
bchain.startBackup();
return bchain;
}