Hello
I have a script who deletes the "call-recording" older than 14days
#!/bin/bash
#
/usr/bin/find /var/spool/asterisk/monitor/ -name ".wav" -mtime +14 > /var/tools/result.txt
echo "CALL-RECs. older 14 days successfully deleted" | mail -s "issabelVPBX CallRecording cleanUp" -a /var/tools/result.txt xxx@yyy.zzz
/usr/bin/find /var/spool/asterisk/monitor/ -name ".wav" -mtime +14 -delete > /var/tools/result.txt
now i put this line on the end of the script, and this command has also deleted the folder "2019"
/usr/bin/find /var/spool/asterisk/monitor/2019/ -type d -mtime +14 -exec rm -rf {} +
how i can prevent to delete also the folder "2019" ??
The second problem, on the callrecs i see "Recording missing" i think it has to do, while i only deleted the files
but the callrecs are also stored on a database.
Thanks for your help