// init transport
ChannelManager channelManager =
new ChannelManager(channelConfig.replaceAll(IP_ADRESS_TEMPLATE, bindIpAddress), channelName + "_"
+ repositoryName + "_" + workspaceName + "_" + id, 2);
RemoteTransport remoteTransport = new RemoteTransportImpl(channelManager, tempDir, dataSourceUrl);
try
{
remoteTransport.init();
// start backup
BackupConfig config = new BackupConfig();
config.setBackupType(BackupManager.FULL_BACKUP_ONLY);
config.setRepository(repositoryName);
config.setWorkspace(workspaceName);
config.setBackupDir(backupManager.getBackupDirectory());
try
{
validateRepositoryName(repositoryName);
validateWorkspaceName(repositoryName, workspaceName);
BackupChain backupChain = backupManager.startBackup(config);
WorkspaceDataPublisher publisher = new WorkspaceDataPublisher(backupChain, remoteTransport);
publisher.start();
}
catch (Exception e)
{
result = "FAIL\n" + e.getMessage();
log.error("Can't start backup", e);
remoteTransport.close();
}
}
catch (RemoteWorkspaceInitializationException e1)
{