Skip to main content
rameshk_FTNT
Staff
Staff
Sep 28, 2009 5:29 PM UTC

Technical Tip: Backup configuration files via TFTP

  • Aug 25, 2026 2:29 PM UTC
  • 1 reply
  • 33766 views
  • Translate All

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.

    1 reply

    New Member
    Sep 3, 2026 11:32 PM UTC

    I think the noted on this is inaccurate, at least if you need to go accross a routed interface. 

    At last on 7.4+ you can set a prefered source in the route table.

    Config router static 

        edit 0

            set dst 172.16.10.10 255.255.255.255

            set preferred-source 192.168.1.1

            set device "INTERFACE or VPNTUNNEL"

        next

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024