Skip to main content
Anthony_E
Staff
Staff
April 16, 2020

Technical Tip: Auto backup to FTP server after an admin config change

  • April 16, 2020
  • 0 replies
  • 13577 views

Description

 

This article describes how to send an automatic backup to the FTP server if an administrator changes a config and logs out of the system.

 

Scope

 

FortiGate.


Solution

 

  1. Go to Security Fabric -> Automation and select 'Create new'. Under 'Trigger', select 'Configuration change'. Under 'Action', select 'CLI Script'.


P1.jpg

 

  1. Under CLI Script, create a name and paste the CLI script for sending the config backup to FTP server and save it.

Go to Backing up and restoring configurations from the CLI - FortiGate administration guide to know more about performing a configuration backup via CLI.
 
P2.jpg

 

  1. If an admin makes a configuration change and logs out of the unit, the CLI script is executed and a backup is sent via the FTP server.

An IPv4 policy has been created to test. Log out from the GUI. 

P3.jpg

 

A backup file is sent to the FTP server as soon as the admin logs out.