Skip to main content
Anthony_E
Staff
Staff
October 27, 2021

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

  • October 27, 2021
  • 0 replies
  • 8399 views

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