code: public RepositoryBackupChain startBackup(RepositoryBackupConfig config) throws BackupOperationException,
        BackupConfigurationException, RepositoryException, RepositoryConfigurationException
     {
        validateBackupConfig(config);
  
        File dir =
           new File(config.getBackupDir() + File.separator + "repository_" + config.getRepository() + "_backup_"
              + System.currentTimeMillis());
        PrivilegedFileHelper.mkdirs(dir);
        config.setBackupDir(dir);
  
        RepositoryBackupChain repositoryBackupChain =
           new RepositoryBackupChainImpl(config, logsDirectory, repoService, fullBackupType, incrementalBackupType,
              IdGenerator.generate());
  
        repositoryBackupChain.startBackup();
  
        currentRepositoryBackups.add(repositoryBackupChain);
  
        return repositoryBackupChain;
     }
docs: {@inheritDoc}