Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Ahmedaz
New Contributor

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 2
Shashwati
Staff
Staff
salmas
Staff
Staff

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-varia...

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

salmas

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors