class BackupService {

    public List<BackupFile> getBackupFiles() {
        List<File> files = backupRepository.getBackupFiles();
        List<BackupFile> backupFiles = new ArrayList<>();
        files.stream().forEach(b -> backupFiles.add(new BackupFile(b.getName())));
        setCreatedAt(backupFiles);
        return backupFiles;
    }

    @Autowired public  BackupService(BackupRepository backupRepository, ServerConfService serverConfService,
            ExternalProcessRunner externalProcessRunner,
            @Value("${script.generate-backup.path}") String generateBackupScriptPath,
            AuditDataHelper auditDataHelper);

}