Skip to main content
Ahmedaz
Visitor III
Sep 4, 2024 1:38 PM UTC
Question

issue with %%date%%

Hello Engineers,

My FortiGate is 601F and Frimware V7.4.4

I’m encountering an issue with scheduling backups from FortiGate to our backup server. The backups are being executed successfully, but the filenames do not include the date and time as required.

Here is the script I used:

execute backup full-config sftp /FortiGate-FW/%%log.date%%.conf 10.220.210.10 admin klJKdfhd#54@dm,f

I need the backup files to include both the date and time. Could anyone advise on how to modify the script to incorporate timestamps in the backup filenames?

Thanks

2 replies

Shashwati
Staff
Staff
Sep 4, 2024 1:54 PM UTC
salmas
Staff
Staff
Sep 4, 2024 9:44 PM UTC

Hello @Ahmedaz 

 

Time variable would not work for some TFTP/SFTP/FTP servers because it detects these variables as bad characters.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Automated-configuration-backups-with-variable/ta-p/212020

execute backup full-config sftp FGT601F_%%date%%.conf 10.220.210.10 admin password

salmas

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT