NextDom\Managers\BackupManager::rotateBackups
Removes backup archives according to backup::keepDays and backup::maxSize
1. since files are sorted, we can sum-up bytes until limit is reached from that point, remove all other files
Signature
public function rotateBackups(string
$backupDir )
Parameters
$backupDir
— string- backup root directory