Friday, February 24, 2017

Deleting Recordings from a Specific Date in Vicidial

How does one delete recordings from a specific date? It's a good thing that vicidial recordings are named by date. In my case, the recordings we use are in MP3 format.

For example here, if I wanted to delete all MP3's from March 19, 2016, I just need to use the command below:
rm -f /var/spool/asterisk/monitorDONE/MP3/20160319*.mp3
It would be helpful in freeing up space if the original .WAV files are also deleted since they eat up a lot of space. This isn't a date-specific command since we only need the MP3's.
rm -f /var/spool/asterisk/monitorDONE/ORIG/*.wav 

To free up more space, check here:
http://simplevicidial.blogspot.com/2016/04/no-mysqlsock-because-root-partition-is.html 

*Another thing I learned: Sometimes, you just need to reboot to free up space.

No comments:

Post a Comment