Page 1 of 1

Disabling automatic recording deletion

PostPosted: Sun Oct 16, 2016 4:31 pm
by Kristyan
Hello everyone and as a new member sorry for the errors on this thread.

What should i do here after issuing the command crontab e:
My problem is my server automatically removes recordings in my server. Pls seed help!!!

UPON ISSUING COMMAND
crontab -e
UW PICO 5.07 File: /tmp/crontab.t7nIF7 Modified

### 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

### kill Hangup script for Asterisk updaters
* * * * * /usr/share/astguiclient/AST_manager_kill_hung_congested.pl

### updater for voicemail
* * * * * /usr/share/astguiclient/AST_vm_update.pl

### updater for conference validator
* * * * * /usr/share/astguiclient/AST_conf_update.pl

### reset several temporary-info tables in the database
2 1 * * * /usr/share/astguiclient/AST_reset_mysql_vars.pl

### Reboot nightly to manage asterisk issues and memory leaks - uncomment if issues arise
#30 6 * * * /sbin/reboot

### remove text to speech file more than 4 days old
#20 0 * * * /usr/bin/find /var/lib/asterisk/sounds/tts/ -maxdepth 2 -type f -mtime +4 -print | xargs rm -f

## uncomment below if you want to log agent phone_ip
#*/5 * * * * /usr/share/astguiclient/AST_phone_update.pl --agent-lookup

Version:
VERSION: 2.12-552a
BUILD: 160429-0835
© 2016 ViciDial Group

Vicibox Mode
Vicibox Express

Re: Disabling automatic recording deletion

PostPosted: Sun Oct 16, 2016 7:29 pm
by hansg
Is the server deleting the original recording or a converted MP3 version?

It looks as if you don't have any recording conversions in place and you also have a line asking the server to delete any recordings older than a day (24 1 * * * /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -mtime +1 -print | xargs rm -f)

Comment out that line by placing a "#" before it. That will stop the recordings from being deleted.

Re: Disabling automatic recording deletion

PostPosted: Thu Oct 20, 2016 2:45 pm
by Kristyan
thank you it works!