execute : restore config
 
restore config
Use this command to restore the configuration from a configuration backup file on an TFTP 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 “execute backup cli-config” and “execute 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 more information, see “Permissions”.
Syntax
execute restore config tftp <filename_str> <tftp_ipv4> [<password_str>]
Variable
Description
Default
<filename_str>
Type the name of the backup or firmware image file.
No default.
<tftp_ipv4>
Type the IP address of the TFTP server.
No default.
[<password_str>]
Type 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 clear text.
No default.
Example
This example downloads a configuration file named backup.conf from the TFTP server, 192.168.1.23, to the FortiWeb appliance. The backup file was encrypted with the password P@ssword1.
execute restore config tftp backup.conf 192.168.1.23 P@ssword1
The FortiWeb appliance then applies the configuration backup and reboots.
Related topics
execute backup full-config
execute restore config
execute restore image
execute restore secondary-image