Maintaining The System

Backing up your configuration using the CLI

If you only want to back up the core configuration file, you can perform this backup using the CLI.

The core configuration file does not contain all configuration data. Failure to perform a complete backup could result in data loss of items such as Bayesian databases, dictionary databases, mail queues, and other items. For details on performing a complete backup, see “Backup and restore” on page 218.

To back up the configuration file using the CLI, enter the following command: execute backup config tftp <filename_str> <tftp_ipv4> where:

  • <filename_str> is the name of the file located in the TFTP server’s root directory
  • <tftp_ipv4> is the IP address of the TFTP server

Backing up your configuration using a FortiManager unit

You can back up the core configuration file to a FortiManager unit instead of your management computer.

Before you can do this, you must first enable and configure centralized administration by a FortiManager unit. For details, see “Configuring centralized administration” on page 232.

The core configuration file does not contain all configuration data. Failure to perform a complete backup could result in data loss of items such as Bayesian databases, dictionary databases, mail queues, and other items. For details on performing a complete backup, see “Backup and restore” on page 218.

To back up the configuration file to a FortiManager unit

  1. Go to Maintenance > System > Configuration.
  2. In the Backup Configuration area, select FortiManager.

This option is available only if you have configured the FortiMail unit to connect to a FortiManager unit. For details, see “Configuring centralized administration” on page 232.

  1. Enable System configuration. If you want the configuration backup to include user preferences and IBE data, click Update to update the backup’s cache of user preferences and IBE data, then also enable User configuration and IBE data.
  2. Click Backup.

When the backup completes, a confirmation message appears.

  1. Click OK.

Scheduling configuration backup

Instead of backing up your configuration manually (see the previous sections), you can also configure a schedule to back up the configuration automatically to the FortiMail local hard drive or a remote FTP/SFTP server.

To schedule the configuration backup

  1. Go to Maintenance > System > Configuration.
  2. Under Scheduled Backup, configure the schedule time and the maximum backup number. When the maximum number is reached, the oldest version will be overwritten.
  3. Enable Local backup if you want to back up locally.
  4. Enable Remote backup and configure the FTP/SFTP server credentials if you want to back up remotely.
  5. Click Apply.

Restoring the configuration

In the Restore Configuration area under Maintenance > System > Configuration, you can restore the backup FortiMail configuration from your local PC or a FortiManager unit, For details, see “Restoring the configuration” on page 692.

Restoring the firmware

In the Restore Firmware area under Maintenance > System > Configuration, you can install a FortiMail firmware from your local PC or a FortiManager unit. For details, see “Installing firmware” on page 688.


Having trouble configuring your Fortinet hardware or have some questions you need answered? Check Out The Fortinet Guru Youtube Channel! Want someone else to deal with it for you? Get some consulting from Fortinet GURU!

This entry was posted in Administration Guides, FortiMail and tagged on by .

About Mike

Michael Pruett, CISSP has a wide range of cyber-security and network engineering expertise. The plethora of vendors that resell hardware but have zero engineering knowledge resulting in the wrong hardware or configuration being deployed is a major pet peeve of Michael's. This site was started in an effort to spread information while providing the option of quality consulting services at a much lower price than Fortinet Professional Services. Owns PacketLlama.Com (Fortinet Hardware Sales) and Office Of The CISO, LLC (Cybersecurity consulting firm).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.