Hot!Automated config backup

Author
bprieto
New Member
  • Total Posts : 2
  • Scores: 0
  • Reward points: 0
  • Joined: 2018/09/26 02:52:09
  • Status: offline
2018/09/26 03:04:03 (permalink)
0

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
#1

3 Replies Related Threads

    makco10
    Silver Member
    • Total Posts : 96
    • Scores: 4
    • Reward points: 0
    • Joined: 2015/01/20 15:21:33
    • Location: Honduras
    • Status: offline
    Re: Automated config backup 2018/10/15 12:34:03 (permalink)
    1 (1)
    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

    #2
    bprieto
    New Member
    • Total Posts : 2
    • Scores: 0
    • Reward points: 0
    • Joined: 2018/09/26 02:52:09
    • Status: offline
    Re: Automated config backup 2018/10/15 23:09:07 (permalink)
    0
    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
    #3
    rohitchoudhary1978@gmail.com
    Bronze Member
    • Total Posts : 23
    • Scores: 0
    • Reward points: 0
    • Joined: 2016/11/30 23:07:36
    • Status: offline
    Re: Automated config backup 2019/09/25 22:02:33 (permalink)
    0
    Hi, I just have the same query. Have you achieved the desired backup+date output ?
    If yes please let me know.
     
    Regards
    Rohit
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 5.5