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>]
execute backup full-config tftp <filename_str> <server_ipv4> [<backup_password_str>]
When choosing a backup method, use `full-config` if you want 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.
There is no way to set a source IP or specific interface to the backup configuration. The option is not available.
