Skip to main content
Anthony_E
Staff
Staff
Oct 27, 2021 1:41 PM UTC

Technical Tip: How to take backup from CLI using secure FTP (SFTP) protocol

  • Apr 16, 2026 12:56 PM UTC
  • 0 replies
  • 8650 views
  • Translate All

Description


This article describes how to take a backup from the CLI using Secure FTP (SFTP) protocol.

In all FortiOS versions, the SFTP protocol can be used for taking the backup.

 

Scope

 

FortiOS.

 

Solution

 

To create a backup using the SFTP protocol from the CLI.

 

execute backup config 

 

flash                 <----- Backup config file to flash.

ftp                    <----- Backup config file to FTP server.

management-station    <----- Backup config file to management station.
sftp                  <----- Backup config file to SFTP server.
tftp                  <----- Backup config file to TFTP server.
usb                   <----- Backup config file to USB disk.
usb-mode              <----- Backup config file for USB mode.
 
execute backup config sftp <path/filename> <sftp_IP:port> <username> <password>
 
Related documents:

FortiGate / FortiOS v7.6.3 Administration Guide / Configuration backups and reset

FortiGate / FortiOS v7.4.8 Administration Guide / Configuration backups and reset

FortiGate / FortiOS v7.6.3 CLI Reference / execute backup

FortiGate / FortiOS v7.4.8 CLI Reference / execute backup 

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