Fortinet white logo
Fortinet white logo

CLI Reference

restore image

restore image

Use this command to restore a firmware file from an FTP, SCP (SSH or SFTP), or TFTP server.

Back up your configuration before entering this command. For details, see backup.

This procedure can perform large changes to your configuration. If you are downgrading the firmware, this could reset all changes that you have made to the FortiMail unit’s configuration file and revert the system to the default values for the firmware version, including factory default settings for the IP addresses of network interfaces and the admin administrator account password. If the passwords in the configuration file are not in a backwards compatible format, then all administrators and users could be locked out. For emergency recovery, see admin-maintainer {enable | disable} or make a firmware clean install.

Unlike installing firmware via TFTP during a boot interrupt, this command will try to preserve settings and files, and not necessarily restore the FortiMail unit to its firmware/factory default configuration. If you want a factory reset, instead format all disks (formatmaildisk etc.) and then make a firmware clean install.

Syntax

execute restore image {ftp | scp | tftp} <filename_str> <server_ipv4> [<username_str> <password_str>

Variable

Description

Default

<filename_str>

Enter the name of the firmware file backup file.

<server_ipv4>

Enter the IP address of the server.

<username_str> <password_str>

If the server requires a username and password, enter them.

Example

This example restores firmware file FE_2000A-v300-build397-FORTINET.out, which is stored on the TFTP server 192.168.1.20.

execute restore image tftp FE_2000A-v300-build397-FORTINET.out 192.168.1.20

The CLI displays the following:

This operation will replace the current firmware version!

Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following:

Connect to tftp server 192.168.1.20 ...

Please wait...

########################

Get image from tftp server OK.

Check image OK.

Related topics

restore config

system password-policy

system status

system upgrade-path

restore image

restore image

Use this command to restore a firmware file from an FTP, SCP (SSH or SFTP), or TFTP server.

Back up your configuration before entering this command. For details, see backup.

This procedure can perform large changes to your configuration. If you are downgrading the firmware, this could reset all changes that you have made to the FortiMail unit’s configuration file and revert the system to the default values for the firmware version, including factory default settings for the IP addresses of network interfaces and the admin administrator account password. If the passwords in the configuration file are not in a backwards compatible format, then all administrators and users could be locked out. For emergency recovery, see admin-maintainer {enable | disable} or make a firmware clean install.

Unlike installing firmware via TFTP during a boot interrupt, this command will try to preserve settings and files, and not necessarily restore the FortiMail unit to its firmware/factory default configuration. If you want a factory reset, instead format all disks (formatmaildisk etc.) and then make a firmware clean install.

Syntax

execute restore image {ftp | scp | tftp} <filename_str> <server_ipv4> [<username_str> <password_str>

Variable

Description

Default

<filename_str>

Enter the name of the firmware file backup file.

<server_ipv4>

Enter the IP address of the server.

<username_str> <password_str>

If the server requires a username and password, enter them.

Example

This example restores firmware file FE_2000A-v300-build397-FORTINET.out, which is stored on the TFTP server 192.168.1.20.

execute restore image tftp FE_2000A-v300-build397-FORTINET.out 192.168.1.20

The CLI displays the following:

This operation will replace the current firmware version!

Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following:

Connect to tftp server 192.168.1.20 ...

Please wait...

########################

Get image from tftp server OK.

Check image OK.

Related topics

restore config

system password-policy

system status

system upgrade-path