HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] R: Help Faxcron: I don't want to delete receivedfax!



faxmaster wrote:
When I' trying to schedule faxcron with crontab, I've found that is already
called in etc/cron.weekly


Here below the file "hylafax"

--------------------
#!/bin/sh

test -f /usr/sbin/faxcron || exit 0
test -f /usr/sbin/faxqclean || exit 0
test -f /var/spool/hylafax/log/xferfaxlog || exit 0

# Rotate the HylaFAX logfile

savelog -c 5 /var/log/hylafax/hylafax.log >/dev/null

# HylaFAX routine maintenance script

savelog -c 5 /var/log/hylafax/faxcron.log >/dev/null
faxcron -info 35 -log 35 -rcv 100 -tmp 15 -mode 664 >>
/var/log/hylafax/faxcron.log 2>&1

# HylaFAX queue cleaner process (3024000s = 35 day)

savelog -c 5 /var/log/hylafax/faxqclean.log >/dev/null
faxqclean -t -j 3024000 -a >> /var/log/hylafax/faxqclean.log 2>&1

-------------------------

First I don't understand what is the meaning of the first three line "test -f etc.."

It makes sure that those files (faxcron, faxqclean, xferfaxlog) exist.


Second because I don't want that the sent/receive faxes are deleted I 'm thinking to modify the line of faxcron with value -rcv 3650 (10 years)
And completely remove the line of faxqclean


Did you think this will correct ?

Well, it's my opinion that if you need to archive your faxes somewhere long-term then you should do it somewhere else other than the HylaFAX queue directories. I think that it's generally a bad idea to never run faxqclean and to never delete files from recvq. BUT, you may get away with it without any trouble.


Thanks,

Lee.


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions