|
@@ 662-666 (lines=5) @@
|
| 659 |
|
} |
| 660 |
|
|
| 661 |
|
//processing rule days limit |
| 662 |
|
if($this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_days') && $current_timestamp >= $file['timestamp']) |
| 663 |
|
{ |
| 664 |
|
$this->storage_filesystem->delete($file['path']); |
| 665 |
|
$this->logger->info("Deleting backup ".$file['path']." matching rule", array("RETENTION LIMIT TIMESTAMP", $file['timestamp']." =< ".$this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_days'))); |
| 666 |
|
} |
| 667 |
|
|
| 668 |
|
//processing backup countert limit |
| 669 |
|
if($this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_archives') && $_backups_counter >= $this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_archives')) |
|
@@ 669-674 (lines=6) @@
|
| 666 |
|
} |
| 667 |
|
|
| 668 |
|
//processing backup countert limit |
| 669 |
|
if($this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_archives') && $_backups_counter >= $this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_archives')) |
| 670 |
|
{ |
| 671 |
|
$this->storage_filesystem->delete($file['path']); |
| 672 |
|
$_backups_counter--; |
| 673 |
|
$this->logger->info("Deleting backup ".$file['path']." matching rule", array("BACKUP QUANTITY LIMIT", $_backups_counter." >= ".$this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_archives'))); |
| 674 |
|
} |
| 675 |
|
|
| 676 |
|
|
| 677 |
|
} |