Clean up old FAX

itjumper

Joined
Jul 22, 2008
Messages
81
Likes
0
Points
0
#1
How can I clean up (remove) old faxes from elastix ?

I have deleted some faxes in Fax Visor, but the tif files are still there.

I would like to run a scheduled job to remove fax older than a certain age from Fax Visor and /var/spool/hylafax/recvq

Thanks
 

johnme

Joined
Nov 28, 2008
Messages
148
Likes
0
Points
0
#2
Hi



create a file in /etc/cron.daily/ with filename monitor_cleanup and put in it:

#!/bin/sh
/usr/bin/find /var/spool/asterisk/monitor/ -maxdepth 1 -type f -mtime +30 | /usr/bin/xargs /bin/rm -f >/dev/null 2>&1

This file will delete all monitor files that are older than 30 days. So change the path change the days give it a new name and it will delete everything older than 30 days in the new location.
Be carefull!!!



Hope i help

John
 

itjumper

Joined
Jul 22, 2008
Messages
81
Likes
0
Points
0
#3
I don't see any fax (tiff) in that folder. The folder seems to contain voice recordings. I found the fax in /var/spool/hylafax/recvq though.

I need to clean up recordings as well.

Thanks for your script.
 

johnme

Joined
Nov 28, 2008
Messages
148
Likes
0
Points
0
#4
Hi

As i sayed chnge the path in the script to /var/spool/hylafax/recvq and it will delete the tiff files

Bye
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,594
Latest member
knethardsolutions
Top