---
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 :Nodinite: 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.

## :fa-table: At a Glance {#at-a-glance}

| 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 |

## :fa-gears: 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.

## :fa-lightbulb: 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.

## :fa-hand-point-right: Next Steps

* :fa-monitor-waveform: [Add or manage Monitor Agent][]  
* :fa-pen-to-square: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-calendar-alt: [DaysToKeepMonitorEvents][]  
* :fa-watch-fitness: [Monitoring Service][]  
* :fa-screwdriver-wrench: [Managing Monitoring Service][]  
* :fa-sliders: [System Parameters][]  

[Add or manage Monitor Agent]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/Add%20or%20manage%20Monitor%20Agent.md
[DaysToKeepMonitorEvents]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMonitorEvents.md
[Log Audits]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[Managing Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Features/Managing%20Monitoring%20Service.md
[Monitoring Agent]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md