|
@@ 561-565 (lines=5) @@
|
| 558 |
|
} |
| 559 |
|
|
| 560 |
|
//processing rule days limit |
| 561 |
|
if($this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_days') && $current_timestamp >= $file['timestamp']) |
| 562 |
|
{ |
| 563 |
|
$this->storage_filesystem->delete($file['path']); |
| 564 |
|
$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'))); |
| 565 |
|
} |
| 566 |
|
|
| 567 |
|
//processing backup countert limit |
| 568 |
|
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')) |
|
@@ 568-573 (lines=6) @@
|
| 565 |
|
} |
| 566 |
|
|
| 567 |
|
//processing backup countert limit |
| 568 |
|
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')) |
| 569 |
|
{ |
| 570 |
|
$this->storage_filesystem->delete($file['path']); |
| 571 |
|
$_backups_counter--; |
| 572 |
|
$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'))); |
| 573 |
|
} |
| 574 |
|
|
| 575 |
|
|
| 576 |
|
} |