- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FortiGate automate FTP backup
Hi,
Trying to automate backup configuration (FTP) with changing file name on each and every backup.
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Have a look at this , https://community.fortinet.com/t5/FortiGate/Technical-Tip-Adding-date-and-time-in-file-name-for-sche...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
Vishal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
