Skip to main content
gnMotc
New Member
November 6, 2022
Question

Automated backup Date variable

  • November 6, 2022
  • 1 reply
  • 2224 views

Hi,

 

 

I am running Fortigate 3000D with fortiOS  6.4.9.

while running the automated backup script

 

------------------------------------------------------

Config Global

execute backup config tftp  My_FGT_%%date%%.conf 10.3.10.2

---------------------------------------------------------

 

it does not replaces the variable %%date%%  with the date, i even tried the variable %%log.date%% also but no luck.

 

Can anyone , please help to get the right variable for date.

 

 

 

Regards,

Ali

1 reply

abarushka
Staff
Staff
November 7, 2022

Hello Ali,

 

Format looks good. You may consider to try "fgt_%%date%%_%%time%%.conf" format for testing purposes.

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Adding-date-and-time-in-file-name-for-scheduled/ta-p/203847

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!