Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

restore config

Use this command to restore a primary configuration file from a TFTP server.

Back up your configuration before entering this command. This procedure can perform large changes to your configuration, including, if you are downgrading the firmware, resetting all changes that you have made to the FortiMail unit’s configuration file and reverting the system to the default values for the firmware version, including factory default settings for the IP addresses of network interfaces. For information on creating a backup, see the FortiMail Administration Guide.

 

Unlike installing firmware via TFTP during a boot interrupt, installing firmware using this command will attempt to preserve settings and files, and not necessarily restore the FortiMail unit to its firmware/factory default configuration. For information on installing firmware via TFTP boot interrupt, see the FortiMail Administration Guide.

Syntax

execute restore config {tftp <filename_str> <server_ipv4> |
management-station {normal | template} <revision_int>}

Variable

Description

Default

<filename_str>

If you want to restore a configuration file stored on a TFTP server, enter the name of the configuration file.

 

<server_ipv4>

If you want to restore a configuration file stored on a TFTP server, enter the IP address of the TFTP server.

 

management-station {normal | template}

If you want to restore a configuration file or apply a template stored on a FortiManager unit, enter the management‑station keyword then enter either:

  • normal: Restore a configuration revision number.
  • template: Apply a template revision number.

 

<revision_int>

If you want to restore a configuration file or apply a template stored on a FortiManager unit, enter the revision number of the configuration file or template.

 

Example

This example restores configuration file revision 2, which is stored on the FortiManager unit.

execute restore config management-station normal 2

The CLI displays the following:

This operation will overwrite the current settings!

Do you want to continue? (y/n)

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

Connect to FortiManager ...

Please wait...

Example

This example restores a configuration file from a TFTP server at 172.16.1.5.

execute restore config tftp fml.cfg 172.16.1.5

The CLI displays the following:

This operation will overwrite the current settings!

(The current admin password will be preserved.)

Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following, then terminates the SSH connection and reboots with the restored configuration:

Connect to tftp server 172.16.1.5 ...

Please wait...

 

Get config file from tftp server OK.

File check OK.

Related topics

backup

system central-management

restore config

Use this command to restore a primary configuration file from a TFTP server.

Back up your configuration before entering this command. This procedure can perform large changes to your configuration, including, if you are downgrading the firmware, resetting all changes that you have made to the FortiMail unit’s configuration file and reverting the system to the default values for the firmware version, including factory default settings for the IP addresses of network interfaces. For information on creating a backup, see the FortiMail Administration Guide.

 

Unlike installing firmware via TFTP during a boot interrupt, installing firmware using this command will attempt to preserve settings and files, and not necessarily restore the FortiMail unit to its firmware/factory default configuration. For information on installing firmware via TFTP boot interrupt, see the FortiMail Administration Guide.

Syntax

execute restore config {tftp <filename_str> <server_ipv4> |
management-station {normal | template} <revision_int>}

Variable

Description

Default

<filename_str>

If you want to restore a configuration file stored on a TFTP server, enter the name of the configuration file.

 

<server_ipv4>

If you want to restore a configuration file stored on a TFTP server, enter the IP address of the TFTP server.

 

management-station {normal | template}

If you want to restore a configuration file or apply a template stored on a FortiManager unit, enter the management‑station keyword then enter either:

  • normal: Restore a configuration revision number.
  • template: Apply a template revision number.

 

<revision_int>

If you want to restore a configuration file or apply a template stored on a FortiManager unit, enter the revision number of the configuration file or template.

 

Example

This example restores configuration file revision 2, which is stored on the FortiManager unit.

execute restore config management-station normal 2

The CLI displays the following:

This operation will overwrite the current settings!

Do you want to continue? (y/n)

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

Connect to FortiManager ...

Please wait...

Example

This example restores a configuration file from a TFTP server at 172.16.1.5.

execute restore config tftp fml.cfg 172.16.1.5

The CLI displays the following:

This operation will overwrite the current settings!

(The current admin password will be preserved.)

Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following, then terminates the SSH connection and reboots with the restored configuration:

Connect to tftp server 172.16.1.5 ...

Please wait...

 

Get config file from tftp server OK.

File check OK.

Related topics

backup

system central-management