Skip to main content
mmanrique
Staff
Staff
March 3, 2025

Technical Tip: How to configure an auto script to daily backup FortiGate config on a USB thumb drive

  • March 3, 2025
  • 0 replies
  • 882 views
Description

This article describes how to configure an auto script to daily backup the FortiGate config on a USB thumb drive.

Scope FortiGate.
Solution

This option is only available in CLI:

  1. Connect a USB to FortiGate. 
  2. Format the USB (to delete all files on it).

 

exec usb-disk format

 

  1. Config the auto-script:

 

config system auto-script

    edit Backup

        set interval 86400                <----- 24 hours.

        set repeat 0                      <----- Indefinitely repeat.

        set start auto

        set script "execute backup config usb <backup_filename>"

        set output-size 10                <- Optional.

    next

end

 

The FortiGate will now, save a configuration backup daily to the USB. This option will not be available if there is no USB drive inserted in the USB port.

 

Check the files in the USB with the command 'exec usb-disk list'.