It is recommended to back up logs before an upgrade.
It is also recommended to send logs to a temporary FortiAnalyzer or syslog server during the upgrade.