Technical Tip: Restoring a config file from the CLI by using TFTP server
| Description | This article describes how to restore the config file from the CLI by using the TFTP server. Consider backing up the current configuration (using the GUI or CLI commands below) before starting to restore the config file in question, so that the admin can revert to the current status if needed.
execute backup config execute backup ipsuserdefsig
The first command backs up the configuration, and the second one backs up the IPS custom signatures, if any. |
| Scope | FortiGate. |
| Solution | On the PC connected to FortiGate, set up the TFTP server by downloading the preferred TFTP server application. In this example, TFTPD64 is used.
TFTPD64 GitHub Download Page
execute restore config tftp {string} {Tftp server} {passwd}
Find the following example in the CLI:
execute restore config tftp test.conf 10.82.2.2
test.conf is the config file name, 10.82.2.2 is the IP address of the TFTP server, which is the PC that connects to FortiGate. |


