Skip to main content
chrishantha
New Member
March 15, 2023
Question

FortiGate automate FTP backup

  • March 15, 2023
  • 3 replies
  • 1766 views

Hi,

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

 

3 replies

funkylicious
SuperUser
SuperUser
March 15, 2023
Contributor III
March 15, 2023

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-configuration/ta-p/198364

 

ede_pfau
SuperUser
SuperUser
March 15, 2023

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.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.