Hi,
Trying to automate backup configuration (FTP) with changing file name on each and every backup.
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
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.
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1732 | |
1106 | |
752 | |
447 | |
240 |
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 2024 Fortinet, Inc. All Rights Reserved.