FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Anthony_E
Community Manager
Community Manager
Article Id 239257
Description

This article describes how to use automation to save revision checkpoints on logout only when changes have been made to the config.

Scope FortiGate v7.0.7.
Solution

In 'Automation' tab:

1) Create a new Action CLI script:

 

Anthony_E_0-1670519662908.png

 

 

# config system automation-action

    edit "Save Revision Checkpoint"

        set action-type cli-script

        set script "execute backup config flash \"optional description\""

        set accprofile "super_admin"

    next

end

 

2) Create new Trigger 'Configuration Change':

 

Anthony_E_1-1670519755659.png

 

 

# config system automation-trigger

    edit "Config Changed"

        set event-type config-change

    next

end

 

3) Create a new Stitch. Name it and assign the trigger and action defined in the previous steps:

 

Anthony_E_2-1670519798077.png

 

# config system automatioh-stitc

    edit "auto save revision"

        set trigger "Config Changed"

        config actions

            edit 1

                set action "Save Revision Checkpoint"

                set required enable

            next

        end

    next

end

 

Related article:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Using-the-Revision-option-to-revert-to-a-p...

Contributors