The knowledgebase is organized into different categories. Choose a category for a list of articles or search the knowledgebase for articles related to your question.
SYMPTOMS
SOLUTION
1. Backup any recordings you wish to keep/archive. 2. Log in to your server via SSH as the root shell user. 3. Run the following command to remove files older than a certain number of days: Always excercise caution when using the 'rm' command, understand what you are removing, proceed at your own risk!
Customize this command by entering your own information in the input fields.
Keep days of recordings from today find /var/spool/asterisk/monitor/ -type f -mtime +15 -exec rm -f {} \; If you want to automate the file removal process (no archiving needed), you can add the following to a cronjob (removes files older than two weeks at 1:15 AM each day):
15 1 * * * find /var/spool/asterisk/monitor/ -type f -mtime +14 -exec rm -f {} \; >/dev/null 2>&1 Note: The above should all be on the same line on your cron file |
Powered by WHMCompleteSolution