Technical Tip: FortiGuard scheduled updates
Description
This article describes how to schedule auto updates from the GUI and CLI.
Scope
FortiGuard, FortiGate.
Solution
From the GUI.
Go to System -> FortiGuard -> AntiVirus & IPS Updates -and under 'Scheduled Updates' there are 3 options:
- 'Every' and 'Hours': With a minimum of one hour.

set status enable
set frequency every
set time <hh:mm>
end
- 'Daily' and 'AM or PM': to set a specific hour during the day (however, this is not possible to control the exact time within that hour).

On CLI console:
config system autoupdate schedule
set status enable
set frequency daily
set time <hh:mm>
endset time <hh:mm>
<hh:mm> Hour and minute (hh: 0-23, mm: 0-59 (set mm to 240 for random within 4 hours)).
-
'Weekly', 'Sunday to Saturday' and 'AM or PM': To specify a day of the week and a specific hour (however, this is not possible to control the exact time within that hour).

config system autoupdate schedule
set status enable
set frequency weekly
set time <hh:mm>
set day <day of week>
end
Monday Update every Monday.
Tuesday Update every Tuesday.
Wednesday Update every Wednesday.
Thursday Update every Thursday.
Friday Update every Friday.
Saturday Update every Saturday.
In FortiOS 6.4.1+ this setting was changed in the GUI to FortiGuard Updates. System -> FortiGuard -> FortiGuard Updates

In FortiOS 7.0.0 and above, the option for scheduled updates was added and the default option was 'Automatic'. However, starting from FortiOS 7.6.5, the default auto-update schedule has been changed from 'Automatic' to 'Daily'.

On the CLI console:
config system autoupdate schedule
set status enable
set frequency automatic
end