I ran into a few more problems with this besides the UNTOUCHABLE_ARCHIVE_FILE_COUNT.
-
If I change the maxHistory to a smaller number than a previous run (e.g. 14 to 7), and there are drives older than the new maxHistory size, it does not consider those for removal, and TimeBasedArchiveRemover does not seem to clean them up either.
-
getFilesInPeriod uses fileNamePattern.toRegexForFixedDate(dateOfPeriodToClean), which for some reason limits it's file search to dates with numbers between 0 and 999, files that have value 1000 and over are not picked up for removal.
|