| Description | This article describes how to back up FortiOS & YAML format configuration files using TFTP service as a TFTP server on Linux Mint 21.1 Vera. |
| Scope | FortiGate version 7.2.3 or earlier. |
| Solution |
sudo apt update
sudo apt install tftpd-hpa
sudo systemctl status tftpd-hpa
Access the file and edit it:
sudo nano /etc/default/tftpd-hpa
Change the TFTP directory path and TFTP options only:
Before:
TFTP_DIRECTORY=”/var/lib/tftpboot” TFTP_OPTIONS=”—secure”
After:
It will then be possible to save the changes made before by pressing Ctrl + O, then S, then Ctrl + X (to exit).
sudo mkdir /tftp sudo chown tftp:tftp /tftp <----- This command changes the ownership of the folder.
sudo systemctl restart tftpd-hpa sudo systemctl status tftpd-hpa
Now go to FortiGate-VM 64 (in this case FortiOS 7.2.3 build 1262 is used).
As an example:
execute backup yaml-config tftp backup_test_yaml.conf 10.124.100.12 execute backup config tftp backup_test_FortiOS.conf 10.124.100.12
YAML:
FortiOS:
Notes: Consider that the TFTP Server should be reachable by FortiGate. For more details, see Configuration backups - FortiGate 7.2.3 administration guide. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.