Call recording removal time ?

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Call recording removal time ?

Postby boiken » Mon Oct 20, 2014 5:33 am

Hello

my server delete recording that are older than 7 days.

I want to change this from 7 days ti 6 months.
How can i change this and where do i have to change this ?

This is my Crontab Script for monitorDONE

### remove old recordings more than 7 days old, and delete originals after 1 day
#24 0 * * * /usr/bin/find /var/spool/asterisk/monitorDONE -maxdepth 2 -type f -mtime +7 -print | xargs rm -f
24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -mtime +1 -print | xargs rm -f


Thanks
CONTACT US
Vicidial Support
https://www.fiverr.com/share/rxDY0x
boiken
 
Posts: 134
Joined: Fri Sep 12, 2014 11:56 am
Location: World

Re: Call recording removal time ?

Postby geoff3dmg » Mon Oct 20, 2014 11:21 am

The way your crontab is setup, the wav files get removed after 1 day and the mp3 files never ever get removed (because it's commented out). If you want to remove the mp3's after 6 months you uncomment the first find command and alter the '-mtime +7' to '-mtime +180'.

You can test if you've got it right by copying the command and running it manually without the '| xargs rm -f' on the end. It'll just print a list of files it would of removed.

However, I would highly recommend you look at implementing an archive server if you have a large quantity of recordings.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Call recording removal time ?

Postby boiken » Mon Oct 20, 2014 4:36 pm

Ok.so it means that i dont need orig files if i have the mp3 copy .right ?
Thanks
CONTACT US
Vicidial Support
https://www.fiverr.com/share/rxDY0x
boiken
 
Posts: 134
Joined: Fri Sep 12, 2014 11:56 am
Location: World

Re: Call recording removal time ?

Postby geoff3dmg » Tue Oct 21, 2014 3:56 am

Yes, you don't need those.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Call recording removal time ?

Postby boiken » Tue Oct 21, 2014 2:14 pm

Thank you geoff3dmg
CONTACT US
Vicidial Support
https://www.fiverr.com/share/rxDY0x
boiken
 
Posts: 134
Joined: Fri Sep 12, 2014 11:56 am
Location: World


Return to Support

Who is online

Users browsing this forum: Baidu [Spider] and 99 guests