Fortigate auto backup config by tftp

Tips: Adding date and time in file name after 6.4.9 and 7.0.2 later.
        Key point:
                        Enclose date and time in %%
                        Example: %%date%% or %%time%%

CLI:
    config system automation-trigger
        edit "Daily Backup Config"
            set trigger-type scheduled
            set trigger-hour 23
            set trigger-minute 59
        next
    end
    config system automation-action
        edit "Daily Backup Config"
            set action-type cli-script
            set required enable
            set script "execute backup config tftp ProHC_FG201E.conf 10.3.1.236"
            set accprofile "prof_admin"
        next
    end
    config system automation-stitch
        edit "Daily Backup Config"
            set trigger "Daily Backup Config"
            set action "Daily Backup Config"
        next
    end

GUI:
    




留言