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

Automated config backup

Hello,

 

I have this auto-script to make an automated backuup of my configuration to a FTP server:

 

config system auto-script edit "backup" set interval 86400 set repeat 0 set start auto set script "execute backup full-config ftp /usr/PRODUCTO/backup/nav-edu/folder/firewall.conf 192.1678.1.1 user pass" set output-size 10 next end

 

I need to create a file for every day. How can I add a date to the config file?

 

Thank you

3 REPLIES 3
makco10
Contributor II

Hello,

 

I think the script runs every 24 hours (86400 seconds). It repeats infinite and starts automatically.

 

config system auto-script
edit "backup"
set interval 86400
set repeat 0
set start auto
set script "execute backup full-config ftp /usr/PRODUCTO/backup/nav-edu/folder/firewall.conf 192.1678.1.1 user pass"
set output-size 10
next
end

 

Regards.

Defend Your Enterprise Network With Fortigate Next Generation Firewall
Defend Your Enterprise Network With Fortigate Next Generation Firewall
bprieto

Hello macko10..,

 

I know the script runs every 24 hours.

I need to change the name of the backup file without having to change it by hand every day. That is, I need to add some kind of variable to the file name to add the date as YYYYMMDD.

 

Regards

rohitchoudhary1978

Hi, I just have the same query. Have you achieved the desired backup+date output ?

If yes please let me know.

 

Regards

Rohit

Rohit K
Rohit K
Labels
Top Kudoed Authors