Skip to main content
bprieto
New Member
September 26, 2018
Question

Automated config backup

  • September 26, 2018
  • 1 reply
  • 6712 views

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 reply

    makco10
    Explorer II
    October 15, 2018

    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.

    bprieto
    bprietoAuthor
    New Member
    October 16, 2018

    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
    Visitor III
    September 26, 2019

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

    If yes please let me know.

     

    Regards

    Rohit