Class FileSystemBackupServiceImpl

    • Method Detail

      • prepareNewBackupDir

         File prepareNewBackupDir(File rootBackupDir)
        Returns:

        backup dir for the given base dir. It's up to underlying implementation to define how backups should be organised internally, the only requirement is that when cleanOutdated is called, it should remove all backups which are older than the given ttl

      • backup

         Unit backup(File backupDir, File toBackup, Function1<File, Boolean> toBackupFilter)
        Parameters:
        backupDir - backup directory to store the data
        toBackup - file or root directory to back up at the given backup dir
        toBackupFilter - when this method is asked to back up a directory, we might want to filter the input and store only subset of its files.