There are few folders which reside within FileCatalyst applications such as logs and diagnostic that should be cleaned up periodically. This will prevent the local disk from being filled up and causing service interruptions. In Linux environments, you have the ability to set up cronjobs to delete files and folders that are not needed and taking up some disk space. This article will give you sample crontab entries to clean up log folders.
FileCatalyst Direct v3.4 and later.
- Using PuTTY or another application SSH to the Linux system and edit your crontab file by running: sudo crontab -e
- The following example is set to run every day at 4 am local system time and deletes all the log files on the FileCatalyst Server which are older than 8 days.
* 4 * * * find /opt/utechsoft/server/log/* -mtime +7 -type f -delete
- Running sudo crontab -l command will display and verify the cronjobs are configured properly.
If you have the FileCatalyst Central or FileCatalyst Hotfolder In Linux environments, The following lines are needed for log folder cleanup:
HotFolder Log Location: * 4 * * * find /opt/utechsoft/hotfolder/log/* -mtime +7 -type f -delete
Central Log Location: * 4 * * * find /opt/utechsoft/central/log/* -mtime +7 -type f -delete
Alternatively, you can specify a full path after the find command above to clean up that folders contents.