How Long Are Quarantined Files and Logs Kept in cPFence?

By default, cPFence keeps quarantined files and logs for 60 days before they are automatically cleared. You can adjust this behavior by changing the QUARANTINE_DAYS value in settings.

Changing Quarantine Retention Period

There are two ways to update how many days quarantined files and logs are kept:

  1. Using the WebUI: Go to WebUI > System Settings > Adjust cPFence Settings and change the QUARANTINE_DAYS value.
  2. Using the CLI: Open the configuration file with the following command:
nano /opt/cpfence/config.conf

Then modify the line:

QUARANTINE_DAYS="60"

Change the number to your preferred retention period in days, then save and exit.


Tip: Lowering the number helps free disk space faster, while increasing it allows you to keep quarantined files longer for review.

  • 1 användare blev hjälpta av detta svar
Hjälpte svaret dig?

Relaterade artiklar

What Additional Virus Scanners Are Used in cPFence?

cPFence leverages its strong and robust virus scanning database to ensure your server remains...

How to Enable / Disable Malware Real-Time Protection?

This guide provides instructions for managing Malware Real-Time Protection (MRTP), one of the key...

How to Enable/Disable Auto Quarantine in cPFence ?

See also: How to Restore Files from Quarantine The Auto Quarantine feature in cPFence allows...

How to Identify and Restore Files from Quarantine?

When cPFence quarantines a file that you know is clean, it’s important to identify it and restore...

How to Use cPFence Virus Scanner?

cPFence provides various scanning options to detect and manage potential threats. This guide...