Hi,
Trying to automate backup configuration (FTP) with changing file name on each and every backup.
Hi,
Have a look at this , https://community.fortinet.com/t5/FortiGate/Technical-Tip-Adding-date-and-time-in-file-name-for-sche...
Hello chrishantha,
You can add the variable %%date%% to name the backup with the current date stamp. For example: 'backup-%%date%%.conf' would be saved as backup-2023-01-11.conf
execute backup config ftp backup_%%date%%_%%time%%.conf 192.168.55.4 testuser testpassword
'/Backup/backup.conf' assigns this file name and path to the backup on the FTP server. Note that if the folder path doesn't have '/backup/' specified, the FTP server would save the file into the "default" ftp folder.
execute backup config ftp /Backup/backup_%%date%%_%%time%%.conf 192.168.55.4 testuser testpassword
Reference:
https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-send-automated-backups-of-the-confi...
Haven't tried this but if %time% really has colons as separators, you will not be able to store those files in Windows OS. %date% is OK.
User | Count |
---|---|
2249 | |
1223 | |
772 | |
451 | |
366 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.