The Folder Monitor
The Folder Monitor page provides the capability to set up the server to monitor both a top-level folder and its subfolders, enabling the establishment of a file retention policy.
This feature allows users to configure a specific directory and its subdirectories for monitoring files based on their last modified date.
The system will conduct periodic checks at intervals defined by the administrator. Files within the specified directory and subdirectories, whose last modified date exceeds a predefined time period, will be identified and subsequently removed. This functionality streamlines the process of file retention, automating the deletion of older files in accordance with the designated criteria.
|Path for Cerberus to Monitor
|Regular Expression File Match
|Allows creation of a regular expression to filter what files to delete
|Remove read-only files (new in 12.2.2)
|Gives Folder Monitor permission to remove read-only files
|Check all subfolders
|Folder Monitor will check all subfolders under the root folder provided in 'Folder Path
|Delete Empty Subfolders
|Remove any subfolders under the root path provided that contain no files
|How often, in minutes, Folder Monitor will run
|Delete files older than:
|Define how old files will have to be, in last modified time, before they are deleted
The 'Status Message' and 'Last Check Time' fields serve to provide information about the recent activities of the Folder Monitor:
- This field displays messages indicating whether any files (objects) were removed during the last run of the Folder Monitor. It serves as a notification of the monitoring process outcomes.
Last Check Time:
- This field indicates the timestamp of the most recent execution of the Folder Monitor. Users can refer to this timestamp to understand when the monitoring system last ran and assess the recency of any file removal activities.
Check out our video tutorial on the Folder Monitor
Utilizing Regular Expressions with Folder Monitor
Example Scenario: In this example, we will be using the path C:\ftproot\MonitorTest. The folder monitor will exclusively target files within folders ending with 'ftpuser'.
Set 'Folder Path':
- Navigate to the 'Folder Path' and input the destination you wish to monitor.
- In our specific example, the path is C:\ftproot\Monitor Test.
Define Regular Expression:
- Access the 'Regular Expression File Match' field.
- For our demonstration, we will utilize the following regular expression:
Check All Subfolders:
- Ensure the 'Check all Subfolders' checkbox is selected.
- Click the blue 'Update' button to save your configurations.
Caution on Regular Expressions:
Using regular expressions is an advanced method of employing the folder monitor, and incorrect expressions can result in unintended data loss in the monitored folder. Exercise caution and thoroughly test your expressions before deploying them to a production server or folder. This precautionary measure ensures a secure and error-free implementation of the folder monitor.