- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I just have the same query. Have you achieved the desired backup+date output ?
If yes please let me know.
Regards
Rohit
