Description | This article describes how to perform a FortiGate config backup in unique backup files via TCL scripting. |
Scope | FortiManager. |
Solution |
While FortiManager keeps a record of changes made on all managed FortiGate Devices in Device Manager, sometimes FortiGate config backups need to be made in a remote server at regular intervals. To create unique backup files for each FortiGate device from FortiManager, TCL scripting is required.
To enable TCL scripting, the following FortiManager setting is required:
config system admin setting set show_tcl_script enable end
The following TCL script will append a human-readable timestamp to the resulting backup file name; it can be run from Device Manager directly to all managed FortiGate devices:
#! get_sys_status status
Make sure the script type is set to TCL:
Once the script is run from FortiManager, FortiGate will perform a config backup and upload the file to a remote FTP server with unique file names:
|
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.