Customer Service
Customer Service Information and Announcements
tonylin1
Staff
Staff
Article Id 214743
Description This article describes how to add date into file name in automation to backup config daily.
Scope  
Solution

1) Create a trigger with type 'Schedule':

 

# config system automation-trigger

    edit "TFTP_Backup_Daily"

        set trigger-type scheduled

        set trigger-frequency hourly

        set trigger-minute 15

    end

 

2) Create action 'CLI Script' where %%date%% is utilized: 

x.x.x.x is the tftp server IP.

 

# config system automation-action 

    edit "backup_date"

        set action-type cli-script

        set script "execute backup config tftp test%%date%%.conf x.x.x.x"

        set accprofile "super_admin"

    end 

 

3) Create a stitch: 

 

# config system automation-stitch 

    edit "date_test"

        set trigger "TFTP_Backup_Daily"

        config actions

            edit 1

                set action "backup_date"

                set required enable

            end

    end

Contributors