Nge cron buat clamav

Thursday, July 05, 2007 | Label: | |

Setelah instalasi clamav, hal yang perlu dilakukan adalah menetapkan update virus definition clamav secara otomatis dan scan folder secara otomatis. Caranya?

crontab -e

Yang isinya (ditempatku),

# m h dom mon dow command
00 07 * * * freshclam
00 11 * * * freshclam
00 15 * * * freshclam
00 07 * * * clamscan -r /var/www
00 11 * * * clamscan -r /var/www
00 15 * * * clamscan -r /var/www
00 19 * * * clamscan -r /var/www
00 07 * * * clamscan -r /home
00 11 * * * clamscan -r /home
00 15 * * * clamscan -r /home
00 19 * * * clamscan -r /home


Update :

To remove infected files, we must add "--remove " option. Example,

00 19 * * * clamscan --remove -r /home

technorati tags:

0 komentar: