FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
tinkpen_FTNT
Staff
Staff
Article Id 195193
Description
Normally, the configuration is backed up and restored from the GUI by going to Maintenance > System > Configuration but in some cases, such as where the FortiMail GUI is unavailable, the command line can be useful.  In order for this to work, it is necessary to have a TFTP server that the FortiMail can access.

While it is possible to back up separate components of the configuration from the command line (such as IBE data), only the configuration itself can be restored via command line or GUI.

Solution
To backup a basic configuration file, go to a command line and run:
exec backup config tftp <name-of-config-file> <tftp server>
For example:
exec backup config tftp fortimail.conf 192.168.1.8


To backup a full configuration, including user preferences and IBE data run:
exec backup full-config tftp <name-of-config-file> <tftp server>
For example:
exec backup full-config tftp fortimail.conf 192.168.1.8


To restore a configuration, at a command prompt run:
exec restore config tftp  <name-of-config-file> <tftp server>
For example
exec restore config tftp fortimail.conf 192.168.1.8

Contributors