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
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.
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.
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
Hi, I just have the same query. Have you achieved the desired backup+date output ?
If yes please let me know.
Regards
Rohit
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 |
---|---|
1710 | |
1093 | |
752 | |
446 | |
231 |
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.