FortiGate Firewall Automated config backups to FTP server
Hello,
As per the technical tip: https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-send-automated-backups-of-the-configuration/ta-p/198364 , we have configured automated system backup to an FTP site.
Eg: execute backup config ftp /net-devices-auto-bkp/BACKUP.conf ftp ftp-server-name ftp-username ftp-password
We want the backups to be like:
BACKUP-File-Name= FGT-HOSTNAME-date-timestamp.conf
- Here
HOSTNAME = Fortigate Firewall Hostname
Date = Date of backup
timestamp = timestamp
Hence we are trying to execute the script as :
execute backup config ftp /net-devices-auto-bkp/bkp-FGT-HOSTNAME-%%date%%-%%time%%.conf ftp-server-name ftp-username ftp-password
However the file that gets saved in FTP server folder is : bkp-FGT-HOSTNAME-%%date%%-%%time%%.conf
It should have saved it as : bkp-FGT-HOSTNAME-actual-date-actual-time.conf
How do we resolve this ?
