Technical Tip: Auto backup to FTP server after an admin config change
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
- Go to Security Fabric -> Automation and select 'Create new'. Under 'Trigger', select 'Configuration change'. Under 'Action', select 'CLI Script'.

- 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.
- 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.

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

