Fortinet white logo
Fortinet white logo

CLI Reference

restore config

restore config

Use this command to restore the configuration from a configuration backup file on a TFTP, SFTP, or FTP server, or to install primary or backup firmware.

Back up the configuration before restoring the configuration. This command restores configuration changes only, and does not affect settings that remain at their default values. Default values may vary by firmware version. For backup commands, see backup cli-config and backup full-config.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

execute restore config <sftp/ftp/tftp> <filename_str> <ipv4> [<password_str>]

Variable Description Default

<filename_str>

Enter the name of the backup or firmware image file.

No default.

<ipv4>

Enter the IP address of the TFTP, SFTP, or FTP servers.

No default.

[<password_str>]

Enter the password that was used to encrypt the backup file, if any.

If you do not provide a password, the backup file must have been stored as a clear file with a .zip extension.

No default.

Example

This example downloads a configuration file named backup.zip from the TFTP server, 192.0.2.23, to the FortiWeb appliance. The backup file was encrypted with the password P@ssword1.

execute restore config tftp backup.zip 192.0.2.23 P@ssword1

The FortiWeb appliance then applies the configuration backup and reboots.

Related topics

restore config

restore config

Use this command to restore the configuration from a configuration backup file on a TFTP, SFTP, or FTP server, or to install primary or backup firmware.

Back up the configuration before restoring the configuration. This command restores configuration changes only, and does not affect settings that remain at their default values. Default values may vary by firmware version. For backup commands, see backup cli-config and backup full-config.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

execute restore config <sftp/ftp/tftp> <filename_str> <ipv4> [<password_str>]

Variable Description Default

<filename_str>

Enter the name of the backup or firmware image file.

No default.

<ipv4>

Enter the IP address of the TFTP, SFTP, or FTP servers.

No default.

[<password_str>]

Enter the password that was used to encrypt the backup file, if any.

If you do not provide a password, the backup file must have been stored as a clear file with a .zip extension.

No default.

Example

This example downloads a configuration file named backup.zip from the TFTP server, 192.0.2.23, to the FortiWeb appliance. The backup file was encrypted with the password P@ssword1.

execute restore config tftp backup.zip 192.0.2.23 P@ssword1

The FortiWeb appliance then applies the configuration backup and reboots.

Related topics