1. SSH into the relevant server.
2. Enter the following command:
This will display all jobs that run on a recurring basis. If a Telappliant customer has call recordings, you will likely be presented with these jobs:
recordingsftp.py is the script which moves recordings from the default asterisk "monitor" folder and places them in a newly created "monitor2" folder. We do this so that PBXWare does not remove the recordings too early with it's own retention config.
cleandisk.sh is the script that looks for recordings older than the specified time range. This is the script we are going to focus on.
3. Vim into cleandisk.sh by entering the following command:
You will then be presented with something similar to the below:
This command is looking for files in the "monitor2" folder that are older than 30 days. If files do exist in the "monitor2" folder that are older than 30 days, they will be removed.