Cisco Archive(Schedule Backup Config)
config term
archive
log config
hidekeys
path ftp://172.17.200.2/CiscoArchive/$h-config_
write-memory
time-period 10080
======================================================================
The next backup will be performed in one week exactly (time in minutes), but what if we would like to configure this periodicity with an explicit date time? Unfortunately with the current Archive features, it is not possible. In that case we could combine the Archive feature with Kron Schedule.
Kron is a command scheduler used to automate tasks in the Cisco IOS Software. With Kron, we can set policies and use them once or with a certain periodicity. For this we configure a Kron Policy List and then apply an occurrence to the global Kron policy. Note that Kron does not work with interactive commands, meaning commands that have some type of dialog for validation. An example would be "copy running-config startup-config". In this case, a dialog would appear in order to validate the execution of the sentence. Since we have this "limitation" with that sentence, we could use the "write memory" command which does not need any validation and use it in the Kron Policy.
R1(config)#kron policy-list CONFIGURATION_BACKUP R1(config-kron-policy)#cli write memory R1(config)#kron occurrence Backup BACKUP_OCCURRENCE at 9:00 25 recurring R1(config-kron-occurrence)#policy-list CONFIGURATION_BACKUP
=============================================================================
Thank you for response, you can see below our used configs.!kron occurrence backup-config at 10:09 Wed recurring system-startuppolicy-list backup-config!kron policy-list backup-configcli show config | redirect tftp://10.1.1.200/tftp/iznsw25.conf!
沒有留言:
張貼留言