|
@@ 629-633 (lines=5) @@
|
| 626 |
|
} |
| 627 |
|
|
| 628 |
|
//processing rule days limit |
| 629 |
|
if($this->xcloner_settings->get_xcloner_option('xcloner_cleanup_retention_limit_days') && $current_timestamp >= $file['timestamp']) |
| 630 |
|
{ |
| 631 |
|
$this->storage_filesystem->delete($file['path']); |
| 632 |
|
$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'))); |
| 633 |
|
} |
| 634 |
|
|
| 635 |
|
//processing backup countert limit |
| 636 |
|
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')) |
|
@@ 636-641 (lines=6) @@
|
| 633 |
|
} |
| 634 |
|
|
| 635 |
|
//processing backup countert limit |
| 636 |
|
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')) |
| 637 |
|
{ |
| 638 |
|
$this->storage_filesystem->delete($file['path']); |
| 639 |
|
$_backups_counter--; |
| 640 |
|
$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'))); |
| 641 |
|
} |
| 642 |
|
|
| 643 |
|
|
| 644 |
|
} |