---
title: DaysToKeepMonitorAgentBackups - System Parameter for Monitoring Agent Backup Retention
description: DaysToKeepMonitorAgentBackups sets how many days Nodinite keeps Monitoring Agent configuration backups. Default 90. Once a day the Monitoring Service removes older unpinned backups, keeping the 10 newest per agent and every pinned one.
---

# DaysToKeepMonitorAgentBackups - System Parameter

**DaysToKeepMonitorAgentBackups** sets how many days <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> keeps the configuration backups of your [Monitoring Agents][Monitoring Agent], listed on the [Configuration Backups tab][Add or manage Monitor Agent]. The [Monitoring Service][] reads it in its daily backup cleanup.

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| Property | Value |
| --- | --- |
| Key | `DaysToKeepMonitorAgentBackups` |
| Data type | integer (days) |
| Default | `90`, on a new installation and an update alike |
| Read by | [Monitoring Service][] (once a day) |
| Takes effect | At the next daily cleanup. No restart needed. |
| Status | ✅ Active |
| Since | Nodinite 6.0.0.22 |

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

Once a day, and right after it starts, the [Monitoring Service][] removes every Monitoring Agent configuration backup that is:

* older than **DaysToKeepMonitorAgentBackups** days,
* not pinned, and
* not among the 10 newest unpinned backups of its [Monitoring Agent][].

Every pinned backup, and the 10 newest unpinned backups of each Monitoring Agent, are always kept, however old they are. A value of `0`, an empty value, or a value that is not a whole number removes nothing by age.

Each run that removes backups writes one [Log Audit][Log Audits] entry (Source *Monitoring Service*) with the number removed per Monitoring Agent.

Two other rules remove backups, whatever this parameter says:

* **Version rule**: right after it starts, and then every 4 hours, the Monitoring Service removes backups of configurations below the lowest supported Monitoring Agent version, or of an unknown version. This rule removes pinned backups too.
* **Delete**: a user removes a single backup with **Delete** in the backup's Action menu.

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

* A longer retention keeps more history to compare and restore from; a shorter one keeps the backup list short.
* Pin the backups you must keep with [Edit Pin & Comment][Add or manage Monitor Agent]: a pinned backup is never removed by age.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-monitor-waveform" aria-hidden="true"></i> [Add or manage Monitor Agent][]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-calendar-alt" aria-hidden="true"></i> [DaysToKeepMonitorEvents][]  
* <i class="fal fa-watch-fitness" aria-hidden="true"></i> [Monitoring Service][]  
* <i class="fal fa-screwdriver-wrench" aria-hidden="true"></i> [Managing Monitoring Service][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters][]  

[Add or manage Monitor Agent]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/add-or-manage-monitor-agent/
[DaysToKeepMonitorEvents]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeepmonitorevents/
[Log Audits]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Managing Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/features/managing-monitoring-service/
[Monitoring Agent]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/