Logscape Support

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: HouseKepperApp-1.0 - Keep those pesky files in order!


Veteran Member

Status: Offline
Posts: 41
Date:
HouseKepperApp-1.0 - Keep those pesky files in order!
Permalink  
 


Hot on the heels of the FileScannerApp, comes the HouseKepperApp-1.0

Since Logscape is running on most of your hosts, why not use it to clean up directories as and when they need it. 

The two main use cases so far:

1. Cleanining .hprof dump files from Java application folders

2. Removing common data files from a central repository 

3. Removing old libraries from directories 

 

It's fairly simple, you simply have a .properties file in the lib folder which contains JSON strings, the parameters of which then determine what is deleted and when. An example below:

 

targets={ "TESTNICK":"C:/Users/IDIOT/Testfolder","TESTNICK2":"C:/Users/IDIOT/AnotherTestfolder" }

extensions={ "TESTNICK":".hprof" }

timelimit={ "TESTNICK":"60" }

recursion={ "TESTNICK:"true"} maintenance 

In this example, the TESTNICK directory and all subdirectories will be cleaned of any file labelled .hprof that goes 60 minutes without being modified. However, the TESTNICK2 directory will be cleaned of all filenames including a . once they go 24 hours without being modified. the folder TESTNICK2/SAFE however would remain untouched. 

As always, feedback welcomed!



__________________

Excelian - GitHub

Page 1 of 1  sorted by
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard