Schedule scan
ESET Server Security for Linux v8 has a built-in scheduler to execute periodic custom scans on defined days and times. To set up a periodic custom scan without the built-in scheduler, follow the instructions below.
In Unix-based systems, use cron to schedule an On-demand scan at a custom period.
To set up a scheduled task, edit the cron table (crontab) via a Terminal window.
If you are editing the cron table for the first time, you will be presented with the option to choose an editor by pressing the corresponding number. Select an editor you have experience with; for example, we refer to the Nano editor below when saving changes.
Schedule in-depth full disk scan every Sunday at 2am
1.To edit the cron table, execute the following command from a Terminal window as a privileged user who can access the folders to be scanned:
sudo crontab -e |
2.Use the arrow keys to navigate below the text in crontab, and type the following command:
0 2 * * 0 /opt/eset/efs/bin/odscan --scan --profile="@In-depth scan" / &>/dev/null |
3.To save changes, press CTRL+X, type Y, and press Enter.
Schedule smart scan of a specific folder every night at 11 pm
In this example we schedule to scan the /var/www/download/ folder every night.
1.To edit the cron table, execute the following command from a Terminal window as a privileged user who can access the folders to be scanned:
sudo crontab -e |
2.Use the arrow keys to navigate below the text you see in crontab, and type the following command:
0 23 * * * /opt/eset/efs/bin/odscan --scan --profile="@Smart scan" /var/www/download/ &>/dev/null |
3.To save changes, press CTRL+X, type Y, and press Enter.