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

FortiGate automate FTP backup

Hi,

Trying to automate backup configuration (FTP) with changing file name on each and every backup.  

 

3 REPLIES 3
funkylicious
Contributor III

geek
vsahu
Staff
Staff

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

 

Regards,
Vishal
ede_pfau
Esteemed Contributor III

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.


Ede

"Kernel panic: Aiee, killing interrupt handler!"
Ede"Kernel panic: Aiee, killing interrupt handler!"
Labels
Top Kudoed Authors