Technical Tip: Backup configuration files via TFTP
Description
This article describes the command to backup configuration files from the command line using a TFTP server.
Scope
FortiGate.
Solution
For more information, refer to the FortiOS CLI reference guides available in the Technical Tip: Differences between FortiGate CLI commands 'execute backup config' and 'execute backup full-config'.
Â
execute backup config tftp <filename_str> <server_ipv4> [<backup_password_str>]
execute backup full-config tftp <filename_str> <server_ipv4> [<backup_password_str>]
Note:
The [<backup_password_str>] parameter is optional and can be skipped by pressing Enter after specifying the server IP.
When choosing a backup method, use 'full-config' to include all default values for advanced audits or system rebuilds.
For example, to backup the FortiGate unit system configuration to a file named fgt.cfg on a TFTP server at IP address 192.168.1.23, use the following command:
execute backup config tftp fgt.cfg 192.168.1.23Â
Note:
There is no way to set a source IP or specific interface to the backup configuration. The option is not available.
