We record calls and do regular backups and our disk is filling up.

Scheduled file deletion

The easiest way to prevent your disk from getting too full is to schedule regular cleanups of recordings and backups older than x days.
 
Create a file /etc/cron.daily/cleanup (for example) and add the following to it:
#!/bin/sh
/bin/find /var/spool/asterisk/monitor/* -daystart -mtime +30 -delete >/dev/null 2>&1
/bin/find /var/spool/asterisk/monitor/* -type d -empty -delete >/dev/null 2>&1
/bin/find /var/spool/asterisk/backup/* -daystart -mtime +30 -delete >/dev/null 2>&1
 
After creating the file make it executable.
chmod +x /etc/cron.daily/cleanup
This will run every day around 12-5am and delete anything older than 30 days or whatever number of days you end up using.  It also works on subdirectories and files in those directories.
 

File Compression

If most disk usage is due to recording you can enable compression. This will greatly reduce files size at the expense of increased CPU usage.

If using Freepbx GUI go to Settings>Advanced Settings
Near the bottom change Call Recording Format from wav to gsm
  • call, recording, backup, disk, space, full

Articoli Correlati

I have a bunch of anonymous call attempts showing up in my call logs

I have a bunch of calls that look something like this in the call logs. 2011-11-18...

Do I need to do anything on the server/linux side of things?

You should not have to do anything on the server/linux side unless you want to tweak things or...

How hard is it to upgrade my server?

Upgrading resources such as memory, processing, hard drive space is instantaneous and does not...

Do you automatically upgrade our software when a newer version comes out?

Software upgrades are not automatic because they usually require service interruption.  We can...

Do you provided automatic backups.

Our premium plan includes automatic online backups.  All other plans can be backed up manually...